/* ═══════════════════════════════════════
   AHARA LEAD POPUP — popup.css
   Brand: forest green · amber · cream
   Fonts: Playfair Display + DM Sans
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Overlay ── */
#ahara-lead-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 16, 0.72);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.4s ease;
}
#ahara-lead-overlay.ahara-visible {
    opacity: 1;
}
#ahara-lead-overlay[hidden] {
    display: none !important;
}

/* ── Popup card ── */
#ahara-lead-popup {
    position: relative;
    background: #F7F2E8;
    width: 100%;
    max-width: 460px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#ahara-lead-overlay.ahara-visible #ahara-lead-popup {
    transform: translateY(0) scale(1);
}

/* Top accent bar */
#ahara-lead-popup::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #1E3A2F 0%, #C8861A 50%, #1E3A2F 100%);
}

/* ── Decorative geometry (top-right) ── */
#ahara-lead-deco {
    position: absolute;
    top: -30px;
    right: -30px;
    opacity: 0.6;
    pointer-events: none;
}

/* ── Leaf emoji ── */
#ahara-lead-leaf {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 22px;
    line-height: 1;
}

/* ── Close button ── */
#ahara-lead-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(30, 58, 47, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #4A4535;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}
#ahara-lead-close:hover {
    background: rgba(30, 58, 47, 0.16);
    color: #1E3A2F;
}

/* ── Body ── */
#ahara-lead-body {
    padding: 28px 32px 32px;
    position: relative;
    z-index: 1;
}

/* Eyebrow */
#ahara-lead-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #C8861A;
    margin-bottom: 10px;
    margin-top: 4px;
}

/* Title */
#ahara-lead-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 500;
    color: #1E3A2F;
    line-height: 1.15;
    margin-bottom: 6px;
}

/* Subtitle — offer headline */
#ahara-lead-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-style: italic;
    color: #C8861A;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Offer body */
#ahara-lead-offer {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #6A6050;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* ── Form fields ── */
.ahara-field {
    margin-bottom: 14px;
}
.ahara-field label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9A9580;
    margin-bottom: 6px;
}
.ahara-field input {
    width: 100%;
    padding: 12px 14px;
    background: white;
    border: 1px solid rgba(30, 58, 47, 0.2);
    border-radius: 1px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1A1A14;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ahara-field input:focus {
    border-color: #C8861A;
    box-shadow: 0 0 0 3px rgba(200, 134, 26, 0.12);
}
.ahara-field input::placeholder {
    color: #C5BFB0;
    font-weight: 300;
}

/* Phone wrap */
.ahara-phone-wrap {
    display: flex;
    align-items: stretch;
}
.ahara-dial-code {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: rgba(30, 58, 47, 0.06);
    border: 1px solid rgba(30, 58, 47, 0.2);
    border-right: none;
    border-radius: 1px 0 0 1px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #4A4535;
    white-space: nowrap;
    flex-shrink: 0;
}
.ahara-phone-wrap input {
    border-radius: 0 1px 1px 0;
    flex: 1;
    min-width: 0;
}

/* Error message */
#ahara-lead-error {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #B23B2A;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(178, 59, 42, 0.08);
    border-left: 2px solid #B23B2A;
    border-radius: 0 1px 1px 0;
}
#ahara-lead-error[hidden] { display: none; }

/* Submit button */
#ahara-lead-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #1E3A2F;
    color: #F7F2E8;
    border: none;
    border-radius: 1px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 6px;
    margin-bottom: 10px;
}
#ahara-lead-submit:hover {
    background: #2D5240;
}
#ahara-lead-submit:active {
    transform: scale(0.99);
}
#ahara-lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
#ahara-lead-submit.loading::after {
    content: ' ●●●';
    letter-spacing: 0.05em;
    animation: ahara-dots 1s infinite;
}
@keyframes ahara-dots {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Privacy note */
#ahara-lead-privacy {
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5px;
    color: #B0A896;
    text-align: center;
    line-height: 1.5;
}

/* ── Success state ── */
#ahara-lead-success[hidden] { display: none; }
#ahara-lead-success {
    text-align: center;
    padding: 20px 0 8px;
}
#ahara-lead-tick {
    width: 52px;
    height: 52px;
    background: #1E3A2F;
    color: #F7F2E8;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: ahara-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ahara-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
#ahara-lead-thanks {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #1E3A2F;
    margin-bottom: 6px;
}
#ahara-lead-thanks-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #6A6050;
    margin-bottom: 20px;
}
#ahara-lead-continue {
    background: transparent;
    border: 1px solid rgba(30, 58, 47, 0.3);
    color: #1E3A2F;
    padding: 10px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 1px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#ahara-lead-continue:hover {
    background: #1E3A2F;
    color: #F7F2E8;
}

/* ── Divider ── */
#ahara-lead-body::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(200, 134, 26, 0.15);
    margin: 20px -32px 0;
}

/* ── Mobile ── */
@media (max-width: 500px) {
    #ahara-lead-body {
        padding: 22px 20px 24px;
    }
    #ahara-lead-title {
        font-size: 22px;
    }
    #ahara-lead-body::after {
        margin: 20px -20px 0;
    }
}
