/* Newsletter Page Styles - Mobile First */

/* ── Hero ── */
.newsletter-hero {
    position: relative;
    background-color: #003366;
    background-image: url('../../media/images/global-network-digital-world-connection.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.newsletter-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.78), rgba(0, 51, 102, 0.93));
}

.newsletter-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.newsletter-hero h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.newsletter-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 28px;
}

.newsletter-hero-cta {
    display: inline-block;
    padding: 13px 32px;
    background: #FF8C00;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-hero-cta:hover {
    background: #e67e00;
    transform: translateY(-2px);
    color: #ffffff;
}

/* ── What Subscribers Receive ── */
.newsletter-value-section {
    background: white;
    padding: 70px 20px;
}

.newsletter-value-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-section-title {
    font-size: 28px;
    color: #003366;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.newsletter-value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.newsletter-value-item {
    padding: 28px 24px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.newsletter-value-icon {
    width: 52px;
    height: 52px;
    background: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}

.newsletter-value-item h3 {
    font-size: 18px;
    color: #003366;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-value-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.newsletter-frequency {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e8e8e8;
}

.freq-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.freq-item svg {
    flex-shrink: 0;
    color: #003366;
}

/* ── Subscription Form Section ── */
.subscription-section {
    background: linear-gradient(135deg, #001533, #002147);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

/* Faint dot grid */
.subscription-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Soft orange glow — bottom-left */
.subscription-section::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Inner container — no card, centred content ── */
.ami-subscribe__inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Hidden radio inputs ── */
.ami-channel-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ── Eyebrow with divider lines on both sides ── */
.ami-subscribe__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF8C00;
    margin-bottom: 22px;
}

.ami-subscribe__eyebrow::before,
.ami-subscribe__eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
}

/* ── Heading ── */
.ami-subscribe__heading {
    font-size: clamp(1.7rem, 5vw, 2.15rem);
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    text-align: center;
}

.ami-subscribe__heading em {
    font-style: italic;
    color: #FF8C00;
}

/* ── Sub text ── */
.ami-subscribe__sub {
    font-size: 14.5px;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    margin-bottom: 40px;
}

/* ── Channel selector ── */
.ami-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.ami-channel-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    background: transparent;
    user-select: none;
}

.ami-channel-label:hover {
    border-color: #FF8C00;
    background: rgba(255, 140, 0, 0.06);
}

.ami-channel-label__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ami-channel-label__text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.18s;
    white-space: nowrap;
}

/* WhatsApp direct-link tab — always green */
.ami-channel-label--wa {
    background: #25D366;
    border-color: #25D366;
    text-decoration: none;
}

.ami-channel-label--wa:hover {
    background: #1db954;
    border-color: #1db954;
}

.ami-channel-label--wa .ami-channel-label__text {
    color: #ffffff;
}

/* ── Panel visibility ── */
.ami-panel {
    display: none;
}

#ch-email:checked ~ .ami-subscribe__form-area .ami-panel--email { display: block; }

/* ── Email panel ── */
.ami-email-row {
    display: flex;
    gap: 8px;
}

.ami-email-input {
    flex: 1;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    min-width: 0;
    transition: border-color 0.18s, background 0.18s;
}

.ami-email-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.ami-email-input:focus {
    border-color: rgba(255, 140, 0, 0.60);
    background: rgba(255, 255, 255, 0.08);
}

.ami-btn-submit {
    padding: 13px 22px;
    background: #FF8C00;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, transform 0.12s;
}

.ami-btn-submit:hover  { background: #e67e00; }
.ami-btn-submit:active { transform: scale(0.99); }

/* ── Consent note ── */
.ami-consent-note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    line-height: 1.5;
}

/* ── Bottom tagline with divider lines ── */
.ami-subscribe__footer {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ami-subscribe__footer::before,
.ami-subscribe__footer::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
}

.ami-subscribe__tagline {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.ami-subscribe__tagline strong {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

/* Screen-reader only */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Form Feedback ── */
.form-status-message {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin: 8px 0 0;
    min-height: 20px;
    padding: 10px 12px;
    text-align: left;
}

.form-status-message.is-idle {
    background: transparent;
    color: transparent;
    padding: 0;
    min-height: 0;
    margin: 0;
}

.form-status-message.is-loading {
    background: #eef6ff;
    color: #1b4f8a;
    border: 1px solid #cfe2f7;
}

.form-status-message.is-success {
    background: #edf9f0;
    color: #1c6a35;
    border: 1px solid #bfe7ca;
}

.form-status-message.is-error {
    background: #fff1f1;
    color: #9d2222;
    border: 1px solid #f5c2c7;
}

.form-status-message.is-simulated {
    background: #fff7e6;
    color: #8a5a00;
    border: 1px solid #ffd99c;
}

/* ── Membership Upgrade Bridge ── */
.newsletter-upgrade-section {
    background: linear-gradient(135deg, #003366, #004B87);
    padding: 70px 20px;
    text-align: center;
    color: white;
}

.newsletter-upgrade-container {
    max-width: 650px;
    margin: 0 auto;
}

.newsletter-upgrade-section .upgrade-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF8C00;
    margin-bottom: 22px;
}

.newsletter-upgrade-section .upgrade-eyebrow::before,
.newsletter-upgrade-section .upgrade-eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-upgrade-section h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.newsletter-upgrade-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 30px;
}

.upgrade-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #FF8C00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    color: white;
}

/* ── Tablet (≥641px) ── */
@media (min-width: 641px) {
    .newsletter-hero {
        padding: 100px 20px;
    }

    .newsletter-hero h1 {
        font-size: 44px;
    }

    .newsletter-hero p {
        font-size: 20px;
    }

    .newsletter-section-title {
        font-size: 32px;
    }

    .newsletter-value-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .newsletter-frequency {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }

    .newsletter-upgrade-section h2 {
        font-size: 32px;
    }
}

/* ── Desktop (≥1025px) ── */
@media (min-width: 1025px) {
    .newsletter-hero h1 {
        font-size: 52px;
    }

    .newsletter-section-title {
        font-size: 36px;
    }

    .newsletter-upgrade-section h2 {
        font-size: 36px;
    }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
    .ami-email-row {
        flex-direction: column;
    }

    .ami-btn-submit {
        width: 100%;
        padding: 14px;
    }
}
