/* ================================================================
   FlyMag Newsletter — signup forms + exit-intent popup
   ================================================================ */

.flymag-nl {
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.flymag-nl-title {
    color: #0a3d62;
    margin: 0 0 6px;
    font-size: 1.25rem;
    line-height: 1.25;
}
.flymag-nl-blurb {
    color: #4a5568;
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.flymag-nl-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.flymag-nl-input {
    flex: 1;
    min-width: 200px;
    padding: 11px 14px;
    border: 1px solid #c8d2dc;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2c3e50;
    background: #fff;
}
.flymag-nl-input:focus {
    outline: none;
    border-color: #0a3d62;
    box-shadow: 0 0 0 3px rgba(10,61,98,0.12);
}
.flymag-nl-input-name { max-width: 180px; }

.flymag-nl-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.flymag-nl-list {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid #dde6ee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    align-items: flex-start;
}
.flymag-nl-list:hover { border-color: #c8d2dc; }
.flymag-nl-list input[type="checkbox"] {
    margin: 3px 0 0 0;
    accent-color: #0a3d62;
}
.flymag-nl-list input[type="checkbox"]:checked ~ .flymag-nl-list-label strong { color: #0a3d62; }
.flymag-nl-list-label {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.flymag-nl-list-label strong {
    color: #2c3e50;
    font-size: 0.92rem;
    font-weight: 700;
}
.flymag-nl-list-desc {
    color: #6b7785;
    font-size: 0.8rem;
    margin-top: 2px;
}

.flymag-nl-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0a3d62;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    min-height: 44px;
    width: 100%;
}
.flymag-nl-submit:hover { background: #145080; }
.flymag-nl-submit:active { transform: scale(0.99); }
.flymag-nl-submit-loading { display: none; }
.flymag-nl-form.is-loading .flymag-nl-submit-label { display: none; }
.flymag-nl-form.is-loading .flymag-nl-submit-loading { display: inline; }

.flymag-nl-fine {
    color: #95a5a6;
    font-size: 0.78rem;
    margin: 8px 0 0;
    text-align: center;
}

.flymag-nl-message {
    margin-top: 10px;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    min-height: 20px;
}
.flymag-nl-message.is-success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 10px 12px;
    border-radius: 6px;
}
.flymag-nl-message.is-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 6px;
}

/* ---------- Variant: wide (split layout on desktop) ---------- */

.flymag-nl-wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
    padding: 28px 32px;
}
.flymag-nl-wide .flymag-nl-title { font-size: 1.5rem; }

/* ---------- Variant: hero (dedicated landing page) ---------- */

.flymag-nl-hero {
    background: linear-gradient(135deg, #0a3d62 0%, #145080 100%);
    color: #fff;
    padding: 44px 42px;
    text-align: center;
    max-width: 620px;
    margin: 0 auto 32px;
    border: none;
}
.flymag-nl-hero .flymag-nl-title { color: #fff !important; font-size: 2rem; }
.flymag-nl-hero .flymag-nl-blurb { color: rgba(255,255,255,0.9); font-size: 1.02rem; }
.flymag-nl-hero-icon {
    font-size: 2.5rem;
    color: #f1c40f;
    margin-bottom: 12px;
}
.flymag-nl-hero .flymag-nl-list {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.flymag-nl-hero .flymag-nl-list:hover { background: rgba(255,255,255,0.15); }
.flymag-nl-hero .flymag-nl-list-label strong { color: #fff; }
.flymag-nl-hero .flymag-nl-list-desc { color: rgba(255,255,255,0.75); }
.flymag-nl-hero .flymag-nl-submit {
    background: #f1c40f;
    color: #0a3d62;
    font-size: 1.05rem;
    padding: 14px 28px;
}
.flymag-nl-hero .flymag-nl-submit:hover { background: #ffd42a; }
.flymag-nl-hero .flymag-nl-fine { color: rgba(255,255,255,0.7); }

/* ---------- Variant: popup ---------- */

.flymag-nl-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,20,40,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.25s;
}
.flymag-nl-popup-backdrop.is-open {
    display: flex;
    opacity: 1;
}
.flymag-nl-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.28s;
}
.flymag-nl-popup-backdrop.is-open .flymag-nl-popup { transform: translateY(0); }
.flymag-nl-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    border: none;
    font-size: 1.3rem;
    color: #4a5568;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.flymag-nl-popup-close:hover { background: rgba(0,0,0,0.12); }
.flymag-nl-popup .flymag-nl {
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 32px 28px 24px;
    border-radius: 16px;
}
.flymag-nl-popup .flymag-nl-title { font-size: 1.35rem; }

/* Mobile */
@media (max-width: 560px) {
    .flymag-nl-lists { grid-template-columns: 1fr; }
    .flymag-nl-input-name { max-width: none; }
    .flymag-nl-hero { padding: 32px 24px; }
    .flymag-nl-hero .flymag-nl-title { font-size: 1.5rem; }
    .flymag-nl { padding: 20px 20px; }
}
