/* ═══════════════════════════════════════════════════════════════
   EXOTIC DESTINATIONS — Newsletter Modal CSS
   Replace your existing modal CSS with this
   ═══════════════════════════════════════════════════════════════ */

/* ── Backdrop ────────────────────────────────────────────────── */
.sm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

/* ── Modal box ───────────────────────────────────────────────── */
.sm-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    animation: smModalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

@keyframes smModalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Close button ────────────────────────────────────────────── */
.sm-close-modal {
    position: absolute;
    right: 18px;
    top: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s, color .2s;
}

.sm-close-modal:hover {
    color: #333;
    background: #f0f0f0;
}

/* ── Green top accent bar ────────────────────────────────────── */
.sm-modal-content::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #008f19, #ffb900);
    border-radius: 16px 16px 0 0;
}

/* ── Body ────────────────────────────────────────────────────── */
.sm-modal-body {
    padding: 36px 40px 32px !important;
    text-align: center;
}

/* ── Icon ────────────────────────────────────────────────────── */
.sm-modal-icon {
    font-size: 3rem !important;
    margin-bottom: 14px !important;
    display: block;
}

/* ── Heading ─────────────────────────────────────────────────── */
.sm-modal-body h2 {
    color: #008f19 !important;
    margin-bottom: 12px !important;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

/* ── Subtitle ────────────────────────────────────────────────── */
.sm-modal-subtitle {
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 28px !important;
    font-size: 1.05rem !important;
}

/* ── Form ────────────────────────────────────────────────────── */
.sm-newsletter-form {
    text-align: left;
}

.sm-form-group {
    margin-bottom: 20px;
}

.sm-form-group label {
    display: block !important;
    margin-bottom: 7px !important;
    font-weight: 600 !important;
    color: #222 !important;
    font-size: 1rem !important;
}

.sm-form-group input {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease;
    box-sizing: border-box !important;
    color: #1a1a1a !important;
}

.sm-form-group input::placeholder {
    color: #aaa !important;
    font-size: 0.95rem !important;
}

.sm-form-group input:focus {
    border-color: #008f19 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 143, 25, 0.1) !important;
}

/* ── Consent checkbox row ────────────────────────────────────── */
.sm-consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: #f4f8f4;
    border-radius: 8px;
    border: 1px solid rgba(0,143,25,.15);
}

.sm-consent-group input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #008f19;
    width: 18px !important;
    height: 18px !important;
}

.sm-consent-group label {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #444 !important;
    margin: 0 !important;
    font-weight: normal !important;
}

/* ── Subscribe button ────────────────────────────────────────── */
.sm-subscribe-btn {
    width: 100% !important;
    padding: 16px !important;
    background: #008f19 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    cursor: pointer !important;
    transition: background .3s ease, transform .25s ease, box-shadow .25s ease;
}

.sm-subscribe-btn:hover {
    background: #006d13 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 143, 25, 0.25);
}

.sm-subscribe-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.sm-subscribe-btn:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Privacy note ────────────────────────────────────────────── */
.sm-privacy-note {
    font-size: 0.88rem !important;
    color: #aaa !important;
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
}

/* ── Cloudflare Turnstile ────────────────────────────────────── */
.cf-turnstile {
    margin: 14px 0;
    display: flex;
    justify-content: center;
}

.cf-turnstile iframe {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* ── SweetAlert2 z-index fix ─────────────────────────────────── */
.swal2-container {
    z-index: 10002 !important;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .sm-modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 96vh;
    }

    .sm-modal-body {
        padding: 28px 22px 22px !important;
    }

    .sm-modal-body h2 {
        font-size: 1.55rem !important;
    }

    .sm-modal-subtitle {
        font-size: 0.98rem !important;
    }
}

/* ── Very short screens ──────────────────────────────────────── */
@media (max-height: 600px) {
    .sm-modal-content {
        margin: 1% auto;
        max-height: 98vh;
    }

    .sm-modal-body {
        padding: 20px 16px 16px;
    }
}