/* ============================================================
   Newsletter / Flight Alerts signup block
   Included only when the edt_newsletter_signed_up cookie is absent
   ============================================================ */

/* ── outer wrapper ── */
#newsletter_block_wrap {
    background: #f5f6f8;
    border-top: 1px solid #e1e1e1;
    padding: 36px 20px;
}

/* ── card ── */
#newsletter_block {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 26px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* ── coloured header strip ── */
#nlb_header {
    background:
        radial-gradient(circle at 85% 20%, rgba(255,207,49,0.18) 0%, transparent 45%),
        linear-gradient(135deg, #1b6fa8 0%, #349dda 60%, #4fb3e8 100%);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}
#nlb_header::before {
    content: "\f5af"; /* fa-plane-departure */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 160px;
    color: rgba(255, 255, 255, 0.06);
    transform: rotate(-20deg);
    pointer-events: none;
    line-height: 1;
}
#nlb_header_icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #ffcf31;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35em;
    color: #1b6fa8;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    position: relative;
    z-index: 1;
}
#nlb_header_text {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}
#nlb_eyebrow {
    color: #ffcf31;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
#nlb_title {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25em;
    line-height: 1.25;
    letter-spacing: -0.3px;
}
.nlb_title_accent {
    color: #ffcf31;
}
#nlb_subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: 4px;
    letter-spacing: -0.1px;
}
#nlb_free_pill {
    background: #ffcf31;
    color: #1b6fa8;
    font-weight: 700;
    font-size: 0.72em;
    border-radius: 20px;
    padding: 6px 13px;
    flex-shrink: 0;
    letter-spacing: 1.1px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ── form body ── */
#nlb_form {
    padding: 22px 28px 0 28px;
}

#nlb_fields {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
#nlb_email_wrap {
    flex: 1 1 55%;
}
#nlb_airports_wrap {
    flex: 1 1 40%;
}

#nlb_email,
#nlb_airports {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92em;
    color: #5a5a5a;
    background: #fafafa;
    appearance: none;
    -webkit-appearance: none;
}
#nlb_airports {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a5a5a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
    height: 44px;
    overflow: hidden;
}
/* When expanded (size > 1 is controlled by JS) */
#nlb_airports[size]:not([size="1"]) {
    height: auto;
    overflow-y: auto;
}
#nlb_airports option {
    padding: 6px 10px;
}
#nlb_airports option:checked {
    background: #349dda linear-gradient(0deg, #349dda 0%, #349dda 100%);
    color: #ffffff;
}

.nlb_field_error {
    color: #B22222;
    font-size: 0.8em;
    margin-top: 4px;
    min-height: 16px;
}

/* ── EDT Insider checkbox ── */
#nlb_insider_wrap {
    margin-bottom: 16px;
}
#nlb_insider_label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86em;
    color: #777;
    cursor: pointer;
    line-height: 1.45;
    letter-spacing: -0.1px;
}
#nlb_insider_label > span {
    flex: 1;
    min-width: 0;
}
#nlb_insider_label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #349dda;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.nlb_insider_link {
    color: #1b6fa8;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted #1b6fa8;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.nlb_insider_link:hover,
.nlb_insider_link:focus {
    color: #349dda;
    border-bottom-color: #349dda;
}

/* ── submit button ── */
#nlb_submit {
    width: 100%;
    background: #349dda;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.98em;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.2s ease;
}
#nlb_submit:hover {
    background: #1b6fa8;
}
#nlb_submit:disabled {
    background: #95c9e8;
    cursor: default;
}

/* ── microcopy ── */
#nlb_nospam {
    text-align: center;
    font-size: 0.78em;
    color: #aaa;
    margin-top: 10px;
}

/* ── response messages ── */
#nlb_response {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    text-align: center;
}
#nlb_response.nlb_error {
    background: #fff0f0;
    color: #B22222;
    border: 1px solid #f5c6c6;
}
#nlb_response.nlb_info {
    background: #f0f8ff;
    color: #1b6fa8;
}

/* ── success state ── */
#nlb_success {
    padding: 30px 24px;
    text-align: center;
}
#nlb_success_icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}
#nlb_success_title {
    font-weight: 700;
    font-size: 1.3em;
    color: #349dda;
    margin-bottom: 8px;
}
#nlb_success_body {
    color: #5a5a5a;
    font-size: 0.9em;
    margin-bottom: 16px;
}
#nlb_success_link {
    display: inline-block;
    background: #349dda;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
}
#nlb_success_link:hover {
    background: #1b6fa8;
}

/* ── utility ── */
.nlb_hidden {
    display: none !important;
}

/* ── responsive ── */
@media (max-width: 600px) {
    #newsletter_block_wrap {
        padding: 24px 12px;
    }
    #newsletter_block {
        border-radius: 10px;
        padding-bottom: 18px;
    }
    #nlb_header {
        padding: 14px 16px;
        gap: 12px;
    }
    #nlb_header_icon {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
    #nlb_eyebrow {
        font-size: 0.6em;
        letter-spacing: 1.5px;
    }
    #nlb_title {
        font-size: 1em;
    }
    #nlb_subtitle {
        font-size: 0.76em;
        margin-top: 2px;
    }
    #nlb_free_pill {
        align-self: flex-start;
        font-size: 0.6em;
        padding: 4px 9px;
    }
    #nlb_header::before {
        font-size: 110px;
        right: -30px;
        top: auto;
        bottom: -24px;
    }
    #nlb_form {
        padding: 16px 16px 0 16px;
    }
    #nlb_fields {
        flex-direction: column;
        gap: 8px;
    }
    #nlb_insider_label {
        font-size: 0.78em;
    }
    #nlb_submit {
        padding: 13px 18px;
        font-size: 0.92em;
    }
}

@media (max-width: 380px) {
    #nlb_header {
        padding: 12px 14px;
        gap: 10px;
    }
    #nlb_header_icon {
        width: 34px;
        height: 34px;
        font-size: 0.9em;
    }
    #nlb_title {
        font-size: 0.95em;
    }
    #nlb_free_pill {
        display: none;
    }
}
