/**
 * PTST Newsletter signup modal.
 * Self-contained; uses the brand tokens from colors_and_type.css.
 */

.ptst-nl {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ptst-nl.is-open { display: flex; }

.ptst-nl__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 27, 51, 0.62); /* --bg-deep @ 62% */
    backdrop-filter: blur(2px);
}

.ptst-nl__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--surface, #fff);
    color: var(--ink, #0B1B33);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(11, 27, 51, 0.35);
    padding: 32px 28px 28px;
    animation: ptst-nl-in 0.18s ease-out;
}
@keyframes ptst-nl-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

/* Scoped + !important: the active theme / Elementor global kit styles buttons
   with an accent colour that would otherwise override these. */
.ptst-nl .ptst-nl__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--bg-soft, #F4F7FB) !important;
    color: var(--ink-3, #5A6B86) !important;
    box-shadow: none !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ptst-nl .ptst-nl__close:hover { background: var(--line, #E2E8F2) !important; color: var(--ink, #0B1B33) !important; }

.ptst-nl__title {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--brand-blue, #012F63);
}
.ptst-nl__intro {
    margin: 0 0 20px;
    color: var(--ink-2, #2B3A52);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ptst-nl__row { display: flex; gap: 12px; }
.ptst-nl__row .ptst-nl__field { flex: 1 1 0; }

.ptst-nl__field { display: block; margin-bottom: 14px; }
.ptst-nl__field > span {
    display: block;
    margin-bottom: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2, #2B3A52);
}
.ptst-nl__field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid var(--line, #E2E8F2);
    border-radius: 9px;
    font-size: 0.95rem;
    color: var(--ink, #0B1B33);
    background: var(--surface, #fff);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ptst-nl__field input:focus {
    outline: 0;
    border-color: var(--brand-blue-500, #2E8FD0);
    box-shadow: 0 0 0 3px rgba(46, 143, 208, 0.18);
}

.ptst-nl__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 10px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-2, #2B3A52);
    cursor: pointer;
}
.ptst-nl__consent input {
    margin: 2px 0 0;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--brand-gold, #F5A823);
    cursor: pointer;
}

.ptst-nl__promise {
    margin: 0 0 16px;
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--ink-3, #5A6B86);
}

.ptst-nl__turnstile { margin: 4px 0 14px; min-height: 0; }

.ptst-nl__error {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #FDECEC;
    color: #B42318;
    font-size: 0.85rem;
}

.ptst-nl .ptst-nl__submit {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--brand-gold, #F5A823) !important;
    color: var(--fg-on-gold, #0B1B33) !important;
    box-shadow: none !important;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.ptst-nl .ptst-nl__submit:hover:not(:disabled) { background: var(--brand-gold-600, #D88E11) !important; }
.ptst-nl .ptst-nl__submit:active:not(:disabled) { transform: translateY(1px); }
.ptst-nl .ptst-nl__submit:disabled { opacity: 0.65; cursor: default; }

/* Privacy-policy link in the fine print. */
.ptst-nl__privacy { color: var(--brand-blue-500, #2E8FD0); text-decoration: underline; white-space: nowrap; }
.ptst-nl__privacy:hover { color: var(--brand-blue, #012F63); }

.ptst-nl__success-panel { text-align: center; padding: 12px 4px 4px; }
.ptst-nl__success-panel .ptst-nl__title { color: var(--success, #1F8A5B); }
.ptst-nl__success-panel .ptst-nl__submit { margin-top: 16px; }

@media (max-width: 480px) {
    .ptst-nl__row { flex-direction: column; gap: 0; }
    .ptst-nl__dialog { padding: 28px 20px 22px; }
}
