/* ============================================================
   uj-contact.css – Namespaced for Zayyora Jewellery
   Palette: Deep Navy #062037 · Gold #C5A054 · Cream #FAF7F2
   ============================================================ */

:root {
    --uj-primary: #062037;
    --uj-primary-dark: #041425;
    --uj-gold: #C5A054;
    --uj-gold-light: #DCC07A;
    --uj-gold-pale: rgba(197, 160, 84, .08);
    --uj-cream: #FAF7F2;
    --uj-white: #FFFFFF;
    --uj-text: #062037;
    --uj-text-sec: #1A3A55;
    --uj-text-muted: #6b7d8e;
    --uj-transition: .35s cubic-bezier(.4, 0, .2, 1);
    --uj-radius: 12px;
}

.uj-contact-wrap * {
    box-sizing: border-box;
}

/* ─────────────────────────────
   HERO SECTION
───────────────────────────── */
.uj-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 100px 20px 90px;
    background:
        radial-gradient(circle at top left, rgba(197, 160, 84, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(197, 160, 84, 0.08), transparent 30%),
        linear-gradient(135deg, #04192d 0%, #021120 50%, #000c17 100%);
}

.uj-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 84, 0.03), transparent);
    pointer-events: none;
}

.uj-hero__ornament {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197, 160, 84, 0.9), transparent);
}

.uj-hero__icon {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 84, 0.25);
    box-shadow: 0 0 40px rgba(197, 160, 84, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.02);
    animation: floatIcon 4s ease-in-out infinite;
}

.uj-hero__icon::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(197, 160, 84, 0.08);
}

.uj-hero__icon svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 8px rgba(197, 160, 84, 0.4)) drop-shadow(0 0 18px rgba(197, 160, 84, 0.2));
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.uj-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.uj-hero__label {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: #C5A054;
    margin-bottom: 18px;
}

.uj-hero__title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.2rem);
    font-weight: 600;
    line-height: 1.05;
    color: #FAF7F2;
}

.uj-hero__title em {
    font-style: italic;
    color: #d8b46a;
}

.uj-hero__sub {
    margin-top: 22px;
    color: rgba(250, 247, 242, 0.72);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 620px;
    margin-inline: auto;
}

/* ── Layout ── */
.uj-contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    background-color: var(--uj-cream);
    gap: 48px;
}

/* ── Info Cards ── */
.uj-info-col {
    display: grid;
    grid-template-columns: 1fr;
    /* Default single column */
    gap: 24px;
    align-content: start;
}

.uj-info-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--uj-white);
    border: 1px solid rgba(6, 32, 55, 0.06);
    border-radius: var(--uj-radius);
    box-shadow: 0 4px 12px rgba(6, 32, 55, 0.04);
    transition: transform var(--uj-transition), box-shadow var(--uj-transition);
}

.uj-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(6, 32, 55, 0.08);
}

.uj-info-card__icon {
    width: 48px;
    height: 48px;
    background: var(--uj-gold-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--uj-gold);
}

.uj-info-card__icon svg {
    width: 22px;
    height: 22px;
}

.uj-info-card__body h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--uj-primary);
}

.uj-info-card__link {
    display: block;
    font-size: .95rem;
    color: var(--uj-primary);
    margin-bottom: 4px;
    text-decoration: none;
    font-weight: 500;
}

a.uj-info-card__link:hover {
    color: var(--uj-gold);
}

.uj-info-card__note {
    display: block;
    font-size: .78rem;
    color: var(--uj-text-muted);
}

/* ── Form Column ── */
.uj-form-col {
    background: var(--uj-white);
    padding: 40px;
    border-radius: var(--uj-radius);
    box-shadow: 0 4px 20px rgba(6, 32, 55, 0.06);
    border: 1px solid rgba(6, 32, 55, 0.06);
}

.uj-form-header {
    margin-bottom: 32px;
}

.uj-form-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--uj-primary);
    margin: 0 0 8px;
}

.uj-form-header p {
    color: var(--uj-text-muted);
    font-size: .9rem;
    margin: 0;
}

/* ── Form Floating Labels ── */
.uj-form-row {
    display: flex;
    gap: 24px;
}

.uj-form-group {
    margin-bottom: 28px;
    flex: 1;
}

.uj-input-wrapper {
    position: relative;
    padding-top: 18px;
    font-size: 0;
}

.uj-input-wrapper input,
.uj-input-wrapper textarea,
.uj-input-wrapper select {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1.5px solid rgba(6, 32, 55, .15);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    color: var(--uj-primary);
    outline: none;
    transition: border-color var(--uj-transition);
}

.uj-input-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7d8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
}

.uj-input-wrapper textarea {
    resize: none;
}

.uj-input-wrapper input:focus,
.uj-input-wrapper textarea:focus,
.uj-input-wrapper select:focus {
    border-bottom-color: transparent !important;
}

.uj-input-wrapper label {
    position: absolute;
    top: 28px;
    left: 0;
    color: var(--uj-text-muted);
    font-size: .9rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* ── Phone Input with Country Selector ── */
.uj-phone-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.uj-phone-wrapper .uj-input-wrapper {
    flex: 1;
    padding-top: 18px;
}

.uj-flag-dropdown {
    position: relative;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 10px 4px;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(6, 32, 55, 0.15);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 46px;
    justify-content: center;
}

.uj-flag-dropdown:hover {
    background: transparent;
    border-bottom-color: rgba(6, 32, 55, 0.3);
}

.uj-flag-display {
    font-size: 1.2rem;
    line-height: 1;
}

.uj-caret {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.uj-country-list.open~.uj-caret {
    transform: rotate(180deg);
}

.uj-country-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    width: 280px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--uj-white);
    border: 1px solid rgba(6, 32, 55, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(6, 32, 55, 0.15);
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.uj-country-list.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.uj-search-box {
    padding: 12px;
    border-bottom: 1px solid rgba(6, 32, 55, 0.08);
    position: sticky;
    top: 0;
    background: var(--uj-white);
    z-index: 1;
}

.uj-search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(6, 32, 55, 0.12);
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.uj-search-box input:focus {
    border-color: var(--uj-gold);
}

.uj-country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(6, 32, 55, 0.04);
}

.uj-country-item:last-child {
    border-bottom: none;
}

.uj-country-item:hover {
    background: rgba(197, 160, 84, 0.08);
}

.ci-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.ci-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--uj-primary);
}

.ci-code {
    font-size: 0.8rem;
    color: var(--uj-text-muted);
    font-weight: 500;
}

.uj-input-wrapper input:focus~label,
.uj-input-wrapper input:not(:placeholder-shown)~label,
.uj-input-wrapper textarea:focus~label,
.uj-input-wrapper textarea:not(:placeholder-shown)~label,
.uj-input-wrapper select:focus~label,
.uj-input-wrapper select:valid~label {
    top: 0;
    font-size: .75rem;
    font-weight: 600;
    color: var(--uj-gold);
    letter-spacing: .04em;
}

.uj-form-group__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--uj-gold);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
    transform-origin: center;
    pointer-events: none;
}

.uj-input-wrapper:focus-within .uj-form-group__bar {
    transform: scaleX(1);
}

.uj-form-group.has-error .uj-input-wrapper input,
.uj-form-group.has-error .uj-input-wrapper textarea,
.uj-form-group.has-error .uj-input-wrapper select {
    border-bottom-color: rgba(220, 38, 38, .3);
}

.uj-form-group.has-error .uj-form-group__bar {
    background: #dc2626;
}

.uj-form-group__error {
    color: #dc2626;
    font-size: .75rem;
    margin-top: 6px;
    display: block;
    min-height: 18px;
}

/* ── Buttons ── */
.uj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    transition: all var(--uj-transition);
    text-decoration: none;
}

.uj-btn--submit {
    border: 2px solid var(--uj-primary);
    background: transparent;
    color: var(--uj-primary);
    width: 100%;
    margin-top: 12px;
}

.uj-btn--submit:hover {
    background: var(--uj-primary);
    color: var(--uj-white);
    box-shadow: 0 8px 20px rgba(6, 32, 55, 0.2);
}

.uj-btn--submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    background: transparent;
    color: var(--uj-text-muted);
    border-color: var(--uj-text-muted);
}

.uj-btn--call {
    background: var(--uj-gold);
    color: var(--uj-primary) !important;
    border: 2px solid var(--uj-gold);
    flex-shrink: 0;
}

.uj-btn--call:hover {
    background: transparent;
    color: var(--uj-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 84, 0.3);
}

.uj-btn--call svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* ── CTA BAR ── */
.uj-cta-bar {
    background: var(--uj-primary);
    padding: 60px 24px;
    color: var(--uj-white);
}

.uj-cta-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.uj-cta-bar__text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin: 0 0 8px;
    color: var(--uj-white);
}

.uj-cta-bar__text p {
    margin: 0;
    color: rgba(250, 247, 242, .7);
    font-size: .95rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet & Small Laptops */
@media (max-width: 1024px) {
    .uj-contact-wrap {
        grid-template-columns: 1fr;
        padding: 60px 24px;
        gap: 40px;
    }

    /* Stacks cards into 2 columns on tablet */
    .uj-info-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .uj-form-col {
        padding: 36px;
    }
}

/* Large Mobile / Small Tablet */
@media (max-width: 768px) {
    .uj-hero {
        min-height: 42vh;
        padding: 70px 20px 60px;
    }

    .uj-hero__icon {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }

    .uj-hero__icon svg {
        width: 50px;
        height: 50px;
    }

    .uj-hero__label {
        font-size: 0.7rem;
        letter-spacing: 0.25em;
    }

    .uj-hero__title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .uj-hero__sub {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .uj-contact-wrap {
        padding: 40px 16px;
    }

    /* Single column for cards on mobile */
    .uj-info-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .uj-form-col {
        padding: 28px 20px;
    }

    .uj-cta-bar {
        padding: 40px 20px;
    }

    .uj-cta-bar__inner {
        flex-direction: column;
        text-align: center;
    }

    .uj-cta-bar__text h2 {
        font-size: 1.6rem;
    }

    .uj-cta-bar__text p {
        font-size: 0.88rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .uj-hero {
        min-height: 36vh;
        padding: 60px 16px 50px;
    }

    .uj-hero__icon {
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
    }

    .uj-hero__icon svg {
        width: 42px;
        height: 42px;
    }

    .uj-hero__title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .uj-hero__sub {
        margin-top: 14px;
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .uj-contact-wrap {
        padding: 28px 12px;
        gap: 28px;
    }

    .uj-form-col {
        padding: 24px 16px;
        border-radius: 8px;
    }

    .uj-form-header {
        margin-bottom: 20px;
    }

    .uj-form-header h2 {
        font-size: 1.3rem;
    }

    /* Stack first/last name rows */
    .uj-form-row {
        flex-direction: column;
        gap: 0;
    }

    .uj-info-card {
        padding: 20px;
        gap: 14px;
    }

    .uj-info-card__icon {
        width: 40px;
        height: 40px;
    }

    .uj-info-card__body h3 {
        font-size: 1rem;
    }

    .uj-btn--submit,
    .uj-btn--call {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}

.uj-char-counter {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.75rem;
    color: var(--uj-text-muted);
    pointer-events: none;
}