/* Centered "contact us for a new account" page (request-access.php). Builds on app.css tokens. */
.contact-page { min-height: 100dvh; margin: 0; background: radial-gradient(70% 55% at 50% 0%, #dcebe8 0%, rgba(220, 235, 232, 0) 70%), var(--canvas); }
.contact-page::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; opacity: .35; -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%); pointer-events: none; }

.contact-shell { position: relative; display: grid; min-height: 100dvh; justify-items: center; align-content: center; gap: 22px; padding: 40px 16px; }
.contact-top { display: flex; width: min(100%, 560px); align-items: center; justify-content: space-between; }
.contact-top img { height: 52px; width: auto; }
.contact-top .login-language { margin: 0; background: rgba(255, 255, 255, .8); }

.contact-card { width: min(100%, 560px); border: 1px solid var(--line); border-radius: 26px; padding: clamp(26px, 5vw, 44px); background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.contact-card__icon { display: grid; width: 64px; height: 64px; margin: 0 auto 18px; place-items: center; border-radius: 20px; background: var(--orange-soft); color: var(--orange); }
.contact-card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.contact-card .eyebrow { margin: 0 0 8px; color: var(--orange); }
.contact-card h1 { margin: 0; color: var(--brand-dark); font-size: clamp(28px, 5vw, 36px); line-height: 1.25; letter-spacing: -.02em; }
html[dir='rtl'] .contact-card h1 { letter-spacing: 0; line-height: 1.35; }
.contact-card__lead { max-width: 420px; margin: 10px auto 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 30px; text-align: start; }
.contact-field { display: grid; gap: 7px; }
.contact-field--wide { grid-column: 1 / -1; }
.contact-field label { display: flex; align-items: baseline; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.contact-optional { color: #15803d; font-size: 12px; font-weight: 700; }
.contact-field input, .contact-field textarea { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.contact-field textarea { min-height: 110px; line-height: 1.6; resize: vertical; }
.contact-field input:hover, .contact-field textarea:hover { border-color: #b7c7cc; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); outline: none; }
.contact-field [aria-invalid='true'] { border-color: var(--danger); }
.contact-form .form-alert { grid-column: 1 / -1; border-radius: 10px; font-size: 13px; }
.contact-form .form-alert p { margin: 0; }
.contact-form .form-alert p + p { margin-top: 4px; }
.contact-submit { grid-column: 1 / -1; min-height: 54px; margin-top: 6px; border-radius: 12px; font-size: 16px; }

.contact-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.contact-direct p { width: 100%; margin: 0 0 2px; color: var(--muted); font-size: 13px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--brand-dark); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease; }
.contact-direct a:hover { border-color: var(--orange); background: var(--orange-soft); }
.contact-direct svg { width: 17px; height: 17px; fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.contact-sent { margin-top: 26px; }
.contact-sent .button { min-height: 52px; border-radius: 12px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; color: var(--muted); font-size: 14px; }
.contact-links a { color: var(--brand); font-weight: 700; }

@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-top img { height: 44px; }
}

/* Sign-in page: one column, same card. */
.contact-form--single { grid-template-columns: 1fr; }
.contact-card .login-divider { margin-top: 24px; }
.contact-card .login-signup { margin-top: 14px; }
.contact-card .button--outline { margin-top: 8px; border-radius: 12px; }
