/* ===========================
   ORIGEM NOIVAS — COLEÇÃO LÚMINA
   Premium Luxury Design v7.0
   =========================== */

:root {
    --gold: #B89A5E;
    --gold-light: #D4B87A;
    --gold-dim: rgba(184, 154, 94, 0.15);
    --gold-border: rgba(184, 154, 94, 0.3);
    --cream: #FAF8F4;
    --cream-dark: #F0EDE6;
    --ink: #1A1714;
    --ink-mid: #3D3530;
    --ink-light: #7A6F66;
    --white: #FFFFFF;
    --panel-bg: #1A1714;
    --panel-text: #E8E0D4;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 4px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ===========================
   MOBILE HEADER (top nav)
   =========================== */
.topbar {
    display: block;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gold-border);
    position: fixed;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink);
}

.divider {
    color: var(--gold);
    font-size: 0.8rem;
}

.microcopy {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 1px;
}

/* ===========================
   LAYOUT: SPLIT PANEL
   =========================== */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 64px;
    /* header height */
}

/* LEFT: Brand panel (desktop) */
.brand-panel {
    display: none;
    /* hidden on mobile */
}

/* RIGHT: Form panel */
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px 60px;
    background: var(--cream);
}

/* ===========================
   MOBILE HEADER CONTENT
   =========================== */
.mobile-header {
    text-align: center;
    padding: 30px 0 28px;
    border-bottom: 1px solid var(--gold-border);
    margin-bottom: 30px;
}

.mobile-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-border);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.mobile-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 12px;
}

.mobile-title em {
    font-style: italic;
    color: var(--gold);
}

.mobile-desc {
    font-size: 0.9rem;
    color: var(--ink-light);
    line-height: 1.6;
}

/* ===========================
   FORM CARD
   =========================== */
.form-card {
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    padding: 32px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.form-card-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(184, 154, 94, 0.12);
}

.form-card-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.9rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-card-header p {
    font-size: 0.85rem;
    color: var(--ink-light);
    letter-spacing: 0.3px;
}

/* Section dividers */
.form-section {
    margin-bottom: 24px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-dark);
}

.section-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold);
    line-height: 1;
}

.section-label span:last-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-light);
    font-weight: 500;
}

/* Fields */
.field {
    margin-bottom: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ink-mid);
    margin-bottom: 7px;
}

.optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-light);
    font-size: 0.7rem;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder {
    color: var(--ink-light);
    font-size: 0.85rem;
}

input:focus,
select:focus {
    outline: none;
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23B89A5E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    background-color: var(--cream);
}

/* Conditional fields */
.conditional-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.conditional-fields.active {
    max-height: 1500px;
}

/* Consent */
.consent-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 24px 0;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--radius);
}

/* Native checkbox — visible, sized, and gold-tinted */
.native-check {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--gold);
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
}

.consent-text {
    font-size: 0.8rem;
    color: var(--ink-light);
    line-height: 1.5;
    cursor: pointer;
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--ink);
    color: var(--cream);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   SUCCESS STATE
   =========================== */
.success-state {
    text-align: center;
    padding: 50px 20px;
}

.success-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.success-state h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 14px;
}

.success-state p {
    font-size: 0.9rem;
    color: var(--ink-light);
    line-height: 1.7;
    margin-bottom: 28px;
}

.btn-whatsapp {
    display: inline-block;
    padding: 14px 28px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    opacity: 0.88;
}

/* ===========================
   MOBILE FOOTER
   =========================== */
.mobile-footer {
    text-align: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--gold-border);
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mobile-footer p {
    font-size: 0.8rem;
    color: var(--ink-light);
    margin-bottom: 12px;
}

.mobile-footer a {
    color: inherit;
    text-decoration: none;
}

.mobile-footer a:hover {
    color: var(--gold);
}

.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--ink-light) !important;
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.3s;
}

.ig-link:hover {
    color: var(--gold) !important;
}

.copyright {
    font-size: 0.72rem;
    color: rgba(0, 0, 0, 0.3) !important;
    margin-top: 8px;
}

/* ===========================
   DESKTOP: SPLIT-PANEL LAYOUT
   =========================== */
@media (min-width: 900px) {

    .topbar {
        display: none;
    }

    /* hidden on desktop — left panel serves as the brand identity */

    .page-wrapper {
        padding-top: 0;
        min-height: 100vh;
    }

    /* LEFT PANEL */
    .brand-panel {
        display: flex;
        width: 380px;
        min-width: 380px;
        background: var(--panel-bg);
        min-height: 100vh;
        position: sticky;
        top: 0;
        align-self: flex-start;
        height: 100vh;
    }

    .brand-panel-inner {
        display: flex;
        flex-direction: column;
        padding: 60px 40px;
        height: 100%;
    }

    .brand-panel-logo {
        margin-bottom: 48px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 50%;
        border: 1px solid var(--gold-border);
        filter: brightness(0.9) sepia(0.1);
    }

    .brand-panel-label {
        font-size: 0.6rem;
        letter-spacing: 4px;
        text-transform: uppercase;
        color: var(--gold);
        margin-bottom: 14px;
    }

    .brand-panel-title {
        font-family: 'Cormorant Garamond', serif;
        font-size: 3.2rem;
        font-weight: 300;
        line-height: 1.05;
        color: var(--panel-text);
        margin-bottom: 20px;
    }

    .brand-panel-title em {
        font-style: italic;
        color: var(--gold-light);
    }

    .brand-panel-desc {
        font-size: 0.85rem;
        color: rgba(232, 224, 212, 0.6);
        line-height: 1.8;
        margin-bottom: 36px;
    }

    .brand-panel-details {
        display: flex;
        flex-direction: column;
        gap: 14px;
        flex: 1;
    }

    .detail-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 0.83rem;
        color: rgba(232, 224, 212, 0.7);
        line-height: 1.5;
    }

    .detail-icon {
        color: var(--gold);
        font-size: 0.6rem;
        margin-top: 5px;
        flex-shrink: 0;
    }

    .brand-panel-footer {
        border-top: 1px solid rgba(184, 154, 94, 0.2);
        padding-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .brand-panel-footer>span {
        font-size: 0.75rem;
        color: rgba(232, 224, 212, 0.4);
        letter-spacing: 1px;
    }

    .panel-ig-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 0.75rem;
        color: var(--gold);
        text-decoration: none;
        transition: opacity 0.3s;
    }

    .panel-ig-link:hover {
        opacity: 0.7;
    }

    /* RIGHT PANEL */
    .form-panel {
        flex: 1;
        padding: 60px 60px 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
    }

    .mobile-header {
        display: none;
    }

    .mobile-footer {
        display: none;
    }

    .form-card {
        max-width: 580px;
        padding: 48px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    }

    .form-card-header h2 {
        font-size: 2.2rem;
    }
}

@media (min-width: 1200px) {
    .brand-panel {
        width: 440px;
        min-width: 440px;
    }

    .brand-panel-inner {
        padding: 80px 50px;
    }

    .form-panel {
        padding: 80px 80px;
    }
}