/* ==========================================================
   NomadRoute Audience
   ========================================================== */

.nr-subscriber-signup {
    width: 100%;
    padding: 40px 0 0 0;
    box-sizing: border-box;
}

.nr-subscriber-signup__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 32px 26px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 35, 71, 0.06);
}

.nr-subscriber-signup__content {
    max-width: 760px;
    margin-bottom: 24px;
}

.nr-subscriber-signup__content h2 {
    margin: 0 0 10px;
    color: #0f2347;
    font-size: 1.9rem;
    line-height: 1.2;
}

.nr-subscriber-signup__content p {
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}

/* Form */

.nr-subscriber-form {
    width: 100%;
    max-width: none;
    margin: 0;
}

.nr-subscriber-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.nr-subscriber-form__row input[type="email"] {
    width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    color: #111827;
    background: #ffffff;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.nr-subscriber-form__row input[type="email"]::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.nr-subscriber-form__row input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nr-subscriber-form__row[hidden],
.nr-subscriber-benefits[hidden] {
    display: none !important;
}

/* Button */

.nr-subscriber-form__row button {
    min-width: 220px;
    height: 52px;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
    color: #ffffff;
    background: #0f2347;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.nr-subscriber-form__row button:hover {
    color: #ffffff;
    background: #173664;
    transform: translateY(-1px);
}

.nr-subscriber-form__row button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}

.nr-subscriber-form__row button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

/* Benefits */

.nr-subscriber-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.nr-subscriber-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nr-subscriber-benefit::before {
    content: "✓";
    color: #16a34a;
    font-weight: 700;
}

/* AJAX message */

.nr-subscriber-form__message {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.nr-subscriber-form__message:empty {
    display: none;
}

.nr-subscriber-form__message.success,
.nr-subscriber-form__message.is-success {
    color: #15803d;
}

.nr-subscriber-form__message.error,
.nr-subscriber-form__message.is-error {
    color: #b91c1c;
}

/* Honeypot */

.nr-subscriber-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Mobile */

@media (max-width: 768px) {

    .nr-subscriber-signup {
        padding: 30px 16px;
    }

    .nr-subscriber-signup__inner {
        padding: 24px;
        border-radius: 16px;
    }

    .nr-subscriber-signup__content {
        margin-bottom: 20px;
    }

    .nr-subscriber-signup__content h2 {
        font-size: 1.55rem;
    }

    .nr-subscriber-form__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nr-subscriber-form__row button {
        width: 100%;
    }
    .nr-subscriber-benefits {
        flex-direction: column;
        gap: 10px;
    }
}