/* The "email me the salary report" pop-up (report-gate.js).
   Same card as the newsletter modal; its own classes so the two never fight. */

body.dwr-open { overflow: hidden; }

.dwr-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 20px;
}

.dwr-modal[hidden] { display: none; }

.dwr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
}

.dwr-card {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px 30px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
}

.dwr-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.dwr-close:hover { color: var(--text); }

.dwr-card h2 {
    margin: 0 0 10px;
    font-family: "Geist", sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--text);
}

.dwr-sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.dwr-sub strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }

.dwr-step[hidden] { display: none; }

.dwr-form { display: grid; gap: 14px; }

.dwr-field {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

.dwr-field::placeholder { color: var(--muted); }
.dwr-field:focus { border-color: var(--border-strong); }

/* The code: six big digits, centred. */
.dwr-code {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    padding-left: calc(16px + 0.4em);
}

.dwr-code::placeholder { letter-spacing: 0.4em; }

.dwr-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 0;
    text-align: left;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    cursor: pointer;
}

.dwr-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--text);
    cursor: pointer;
}

.dwr-card .primary-button {
    width: 100%;
    cursor: pointer;
}

.dwr-card .primary-button:disabled { opacity: 0.6; cursor: default; }

.dwr-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 14px;
}

.dwr-link {
    padding: 4px 0;
    border: none;
    background: none;
    color: var(--muted);
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.dwr-link:hover:not(:disabled) { color: var(--text); }
.dwr-link:disabled { text-decoration: none; cursor: default; }

.dwr-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

/* One line for every error and status, announced to screen readers. */
.dwr-message {
    min-height: 1.2em;
    margin: 12px 0 0;
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.45;
}

.dwr-message:empty { margin: 0; min-height: 0; }
.dwr-message.is-error { color: #ff8a80; }

.dwr-turnstile { display: flex; justify-content: center; margin-top: 12px; }
.dwr-turnstile:empty,
.dwr-turnstile[hidden] { display: none; }

@media (max-width: 560px) {
    .dwr-card { padding: 30px 20px 22px; }
}
