/**
 * Form registrasi promo Nellava — tampilan depan.
 *
 * Catatan tema: tema situs memakai font display versi trial yang mencetak
 * watermark "DEMO" pada heading, jadi setiap heading di plugin ini WAJIB
 * memakai font-family: inherit (pelajaran dari plugin Blind Box).
 *
 * Semua keputusan lebar memakai media query (bukan wp_is_mobile) karena
 * LiteSpeed Cache menyajikan satu HTML untuk semua perangkat.
 */

.npr-wrap {
    --npr-primary: #0b2a6b;
    --npr-accent: #d4a017;
    --npr-radius: 14px;
    --npr-line: #e4e7ee;
    --npr-ink: #14203c;
    --npr-muted: #5c6780;

    box-sizing: border-box;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    color: var(--npr-ink);
    font-size: 16px;
    line-height: 1.55;
}

.npr-wrap *,
.npr-wrap *::before,
.npr-wrap *::after {
    box-sizing: border-box;
}

.npr-wrap h2,
.npr-wrap h3,
.npr-wrap legend,
.npr-wrap summary,
.npr-wrap strong {
    font-family: inherit;
}

/* ---------------------------------------------------------------- header */

.npr-head {
    text-align: center;
    margin-bottom: 22px;
}

.npr-period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--npr-primary), #16408f);
    color: #fff;
    font-size: 13px;
    letter-spacing: .3px;
    margin-bottom: 12px;
}

.npr-period-label {
    opacity: .75;
    text-transform: uppercase;
    font-size: 11px;
}

.npr-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
    color: var(--npr-primary);
}

.npr-sub {
    margin: 0 auto;
    max-width: 620px;
    color: var(--npr-muted);
    font-size: 15px;
}

/* ------------------------------------------------------------------ form */

.npr-form {
    background: #fff;
    border: 1px solid var(--npr-line);
    border-radius: var(--npr-radius);
    padding: 22px;
    box-shadow: 0 10px 30px rgba(11, 42, 107, .07);
}

.npr-form fieldset {
    border: 0;
    margin: 0 0 22px;
    padding: 0;
    min-width: 0;
}

.npr-legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--npr-primary);
}

/* ------------------------------------------------------------ tier cards */

.npr-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.npr-tier {
    display: block;
    margin: 0;
    cursor: pointer;
}

.npr-tier input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.npr-tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 16px 12px 14px;
    border: 2px solid var(--npr-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.npr-tier-img {
    max-width: 88px;
    height: auto;
    margin-bottom: 2px;
}

.npr-tier-head {
    font-weight: 700;
    font-size: 15px;
    color: var(--npr-primary);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.npr-tier-bonus {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--npr-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.npr-tier-cash {
    font-size: 12px;
    font-weight: 700;
    color: #8a6a10;
    background: rgba(212, 160, 23, .16);
    border: 1px solid rgba(212, 160, 23, .45);
    border-radius: 999px;
    padding: 3px 10px;
}

.npr-tier-quota {
    font-size: 11px;
    color: var(--npr-muted);
}

.npr-tier-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--npr-line);
    border-radius: 50%;
    background: #fff;
}

.npr-tier:hover .npr-tier-card {
    border-color: var(--npr-accent);
    transform: translateY(-2px);
}

.npr-tier input:checked + .npr-tier-card {
    border-color: var(--npr-accent);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, .2);
}

.npr-tier input:checked + .npr-tier-card .npr-tier-check {
    border-color: var(--npr-accent);
    background: var(--npr-accent);
    box-shadow: inset 0 0 0 3px #fff;
}

.npr-tier input:focus-visible + .npr-tier-card {
    outline: 2px solid var(--npr-primary);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- fields */

.npr-field {
    margin-bottom: 16px;
}

.npr-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.npr-req {
    color: #c0392b;
}

.npr-field input {
    width: 100%;
    /* 16px wajib: di bawah itu iOS Safari otomatis zoom saat field difokus. */
    font-size: 16px;
    line-height: 1.4;
    padding: 12px 14px;
    border: 1px solid #cbd2e0;
    border-radius: 10px;
    background: #fff;
    color: var(--npr-ink);
    -webkit-appearance: none;
    appearance: none;
}

.npr-field input:focus {
    border-color: var(--npr-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 42, 107, .12);
}

.npr-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--npr-muted);
}

.npr-invalid input,
.npr-invalid .npr-tier-card {
    border-color: #c0392b;
}

.npr-error {
    margin: 6px 0 0;
    color: #c0392b;
    font-size: 13px;
    font-weight: 600;
}

.npr-error-form {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(192, 57, 43, .08);
    border: 1px solid rgba(192, 57, 43, .3);
}

/* honeypot: disembunyikan tanpa display:none supaya tetap "terlihat" bot. */
.npr-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.npr-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--npr-accent);
    background: #fbf7ec;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: #5a4a22;
}

.npr-terms {
    margin-bottom: 16px;
}

.npr-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.npr-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------- buttons */

.npr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.npr-btn-primary {
    background: linear-gradient(90deg, #c0392b, #e04b39);
    color: #fff;
    box-shadow: 0 8px 18px rgba(192, 57, 43, .25);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.npr-btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
}

.npr-btn-primary:disabled {
    opacity: .7;
    cursor: default;
}

.npr-btn-ghost {
    width: auto;
    background: transparent;
    border: 2px solid var(--npr-primary);
    color: var(--npr-primary);
}

.npr-btn-wa {
    width: auto;
    background: #25d366;
    color: #fff;
}

.npr-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: npr-spin .7s linear infinite;
}

@keyframes npr-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .npr-spinner { animation-duration: 2s; }
    .npr-tier:hover .npr-tier-card { transform: none; }
}

.npr-counter {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--npr-muted);
}

/* --------------------------------------------------------------- success */

.npr-success {
    background: #fff;
    border: 1px solid var(--npr-line);
    border-top: 4px solid #1e9e5a;
    border-radius: var(--npr-radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 42, 107, .07);
}

.npr-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8f7ee;
    color: #1e9e5a;
    font-size: 28px;
    line-height: 56px;
    font-weight: 700;
}

.npr-success-title {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--npr-primary);
}

.npr-success-text {
    margin: 0 auto 18px;
    max-width: 520px;
    color: var(--npr-muted);
    font-size: 15px;
}

.npr-success-summary {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 8px 16px;
    margin: 0 auto 18px;
    max-width: 460px;
    text-align: left;
    font-size: 14px;
}

.npr-success-summary dt {
    color: var(--npr-muted);
}

.npr-success-summary dd {
    margin: 0;
    font-weight: 700;
}

/* ---------------------------------------------------------------- closed */

.npr-closed {
    background: #fff;
    border: 1px dashed var(--npr-line);
    border-radius: var(--npr-radius);
    padding: 32px 22px;
    text-align: center;
    color: var(--npr-muted);
}

.npr-closed-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

/* ----------------------------------------------------------------- terms */

.npr-terms-box {
    margin-top: 16px;
    border: 1px solid var(--npr-line);
    border-radius: 10px;
    background: #fafbfd;
    padding: 12px 16px;
    font-size: 13.5px;
}

.npr-terms-box summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--npr-primary);
}

.npr-terms-box ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--npr-muted);
}

.npr-terms-box li {
    margin-bottom: 5px;
}

/* --------------------------------------------------------------- contact */

.npr-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--npr-muted);
}

.npr-contact-key {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 4px;
    border-radius: 999px;
    background: var(--npr-primary);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.npr-contact a {
    color: var(--npr-primary);
    font-weight: 700;
    text-decoration: none;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 720px) {
    .npr-tier-grid {
        grid-template-columns: 1fr;
    }

    .npr-tier-card {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
        gap: 8px 10px;
        padding: 14px 40px 14px 14px;
    }

    .npr-tier-img {
        max-width: 56px;
        margin: 0;
    }

    .npr-tier-head {
        flex: 1 1 100%;
    }

    .npr-title {
        font-size: 23px;
    }

    .npr-form,
    .npr-success {
        padding: 18px 14px;
    }

    .npr-success-summary {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .npr-success-summary dd {
        margin-bottom: 8px;
    }
}
