/* ── HSS Email Capture — v2.0.0 ────────────────────────────────────────── */

/* ── Inline CTA — light, warm, fits cream section ─────────────────────── */
.hss-inline-cta {
    background: #fff;
    border: 1px solid #ece4d6;
    border-radius: 20px;
    padding: 42px 36px 36px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(26,58,92,0.06);
    max-width: 540px;
    margin: 0 auto;
    font-family: inherit;
}
.hss-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fff8e1, #ffe9a8);
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(247,201,72,0.25);
}
.hss-inline-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2d6a9f;
    margin: 0 0 6px;
}
.hss-inline-title {
    font-size: clamp(1.4rem, 3.2vw, 1.8rem);
    font-weight: 800;
    color: #1a2d3d;
    margin: 0 0 10px;
    line-height: 1.2;
}
.hss-inline-sub {
    font-size: 0.95rem;
    color: #4a5c6a;
    margin: 0 auto 22px;
    line-height: 1.55;
    max-width: 420px;
}

/* ── Inline CTA form ── */
.hss-inline-cta .hss-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.hss-inline-cta .hss-form input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 14px 18px;
    border: 1.5px solid #dde3ea;
    border-radius: 50px;
    font-size: 0.95rem;
    background: #fafbfc;
    color: #1a2d3d;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
    -webkit-appearance: none;
    box-sizing: border-box;
}
.hss-inline-cta .hss-form input[type="email"]:focus {
    border-color: #2d6a9f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45,106,159,0.12);
}
.hss-inline-cta .hss-form input[type="email"]::placeholder { color: #98a8b8; }

.hss-inline-cta .hss-form button {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #f7c948, #f0a500);
    color: #1a3a5c;
    border: none;
    border-radius: 50px;
    padding: 14px 26px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s, opacity 0.15s;
    font-family: inherit;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(240,165,0,0.3);
    white-space: nowrap;
}
.hss-inline-cta .hss-form button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(240,165,0,0.42);
}
.hss-inline-cta .hss-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hss-inline-cta .hss-form-success {
    color: #1a5c2a;
    background: #edfaef;
    border: 1px solid #b8e8c0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 8px 0 0;
}
.hss-inline-cta .hss-form-error {
    color: #c53030;
    font-size: 0.85rem;
    margin: 8px 0 0;
}
.hss-inline-trust {
    font-size: 0.74rem;
    color: #98a8b8;
    margin: 14px 0 0;
    letter-spacing: 0.3px;
}

/* ── Popup Overlay ─────────────────────────────────────────────────────── */
#hss-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.78);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#hss-popup-overlay.hss-visible {
    display: flex;
    animation: hssOverlayIn 0.22s ease;
}
@keyframes hssOverlayIn { from { opacity: 0; } to { opacity: 1; } }

#hss-popup {
    background: #fff;
    border-radius: 22px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 28px 80px rgba(10,22,40,0.4);
    overflow: hidden;
    animation: hssPopupIn 0.3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes hssPopupIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hss-popup-header {
    background: linear-gradient(160deg, #1a3a5c 0%, #2d6a9f 100%);
    padding: 32px 30px 26px;
    text-align: center;
}
.hss-popup-badge {
    display: inline-block;
    background: rgba(247,201,72,0.15);
    border: 1px solid rgba(247,201,72,0.5);
    color: #ffe08a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border-radius: 30px;
    padding: 5px 16px;
    margin-bottom: 14px;
}
.hss-popup-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 10px;
}
.hss-popup-title span { color: #f7c948; }
.hss-popup-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.55;
}

#hss-popup-close {
    position: absolute;
    top: 13px;
    right: 15px;
    background: rgba(255,255,255,0.14);
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
#hss-popup-close:hover { background: rgba(255,255,255,0.28); color: #fff; }

.hss-popup-body { padding: 26px 30px 28px; background: #fff; }

.hss-popup-body .hss-form { display: flex; flex-direction: column; gap: 10px; }
.hss-popup-body .hss-form input[type="email"] {
    width: 100%;
    padding: 13px 20px;
    border: 1.5px solid #dde8f2;
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.15s;
    box-sizing: border-box;
    color: #1a3a5c;
    background: #f4f8fd;
    font-family: inherit;
    -webkit-appearance: none;
}
.hss-popup-body .hss-form input[type="email"]:focus {
    border-color: #2d6a9f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45,106,159,0.12);
}
.hss-popup-body .hss-form button {
    background: linear-gradient(135deg, #f7c948 0%, #f0a500 100%);
    color: #1a3a5c;
    border: none;
    border-radius: 50px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s;
    font-family: inherit;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(240,165,0,0.3);
}
.hss-popup-body .hss-form button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(240,165,0,0.45);
}
.hss-popup-body .hss-form button:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.hss-popup-body .hss-form-success {
    color: #1a5c2a;
    background: #edfaef;
    border: 1px solid #b8e8c0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.hss-popup-body .hss-form-error {
    color: #a02020;
    font-size: 13px;
    margin: 0;
}

.hss-popup-skip { margin-top: 14px; text-align: center; }
.hss-popup-skip a {
    font-size: 12px;
    color: #9baab8;
    text-decoration: underline;
}
.hss-popup-skip a:hover { color: #4a5c6a; }

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .hss-inline-cta { padding: 32px 22px 28px; border-radius: 18px; }
    .hss-inline-cta .hss-form { flex-direction: column; gap: 10px; }
    .hss-inline-cta .hss-form input[type="email"] { flex: 1 1 100%; }
    .hss-inline-cta .hss-form button { width: 100%; }
    .hss-popup-header { padding: 26px 22px 22px; }
    .hss-popup-body   { padding: 22px 22px 24px; }
    .hss-popup-title  { font-size: 22px; }
}
