/* ── Form cards (shared across en/ru/he) ────────────────────────────────────
   The .contact-form-card / .contact-input / .contact-submit vocabulary is used
   by /{lang}/partners/ and /{lang}/tools/site-checker/ on www, and was defined
   only in Verticals/SLAtech.Business/wwwroot/css/style.css - a stylesheet www
   never serves. Both pages therefore shipped a default browser input stretched
   across the page and a submit button rendered as bare text. Measured on
   production 2026-09-29; same failure as check-site.css, which had been left
   behind in the same project when its page moved here.

   Rewritten in this site's tokens rather than copied: the Business rules are
   written against --white/--border/--teal/--r-xl, none of which exist on www,
   so a copy would have inherited nothing and looked no better. */

.contact-form-card {
    background: #fff;
    border: 1px solid #E8ECF3;
    border-radius: 18px;
    padding: clamp(22px, 4vw, 40px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
}

.contact-form-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-on-light-primary, #0F172A);
    margin-bottom: 24px;
}

/* Heebo stops at 700, so an 800 here renders as a synthesised bold on /he/. */
html[lang="he"] .contact-form-title { font-weight: 700; }

.contact-input {
    display: block;
    width: 100%;
    background: var(--bg-light-secondary, #F8F9FB);
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: .92rem;
    color: var(--text-on-light-primary, #0F172A);
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    outline: none;
}

.contact-input::placeholder { color: var(--text-on-light-muted, #94A3B8); }

.contact-input:focus {
    border-color: #2563EB;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.contact-submit {
    background: var(--accent-green, #047857);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(4, 120, 87, .25);
}

.contact-submit:hover {
    background: var(--accent-green-hover, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(4, 120, 87, .32);
}

.contact-submit:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* ── Inline result/error banners ────────────────────────────────────────────
   Both pages mark their success and failure messages with .alert, a class this
   site never defined, so a failed check and a successful one were the same
   paragraph of plain text. */
.alert {
    border-radius: 12px;
    padding: 13px 16px;
    font-size: .92rem;
    line-height: 1.55;
    border: 1px solid transparent;
}

.alert-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.alert-danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

@media (prefers-reduced-motion: reduce) {
    .contact-submit { transition: none; }
    .contact-submit:hover { transform: none; }
}

/* ── The rest of the contact form ───────────────────────────────────────────
   /{lang}/partners/ uses seven more class names from the same vocabulary, and
   they were defined nowhere: the labels sat flush against their inputs, the
   validation messages were indistinguishable from body text, and the success
   panel that replaces the form after a submission had no panel at all. */

.contact-section {
    padding: 64px 0 80px;
    background: var(--bg-light-secondary, #F8F9FB);
}

.contact-label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-on-light-primary, #0F172A);
    margin-bottom: 6px;
}

/* Same box as .contact-input - a select and a textarea in the same form that
   look like different controls read as a broken form. */
.contact-select,
.contact-textarea {
    display: block;
    width: 100%;
    background: var(--bg-light-secondary, #F8F9FB);
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 15px;
    font-family: inherit;
    font-size: .92rem;
    color: var(--text-on-light-primary, #0F172A);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    outline: none;
}

.contact-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.contact-select:focus,
.contact-textarea:focus {
    border-color: #2563EB;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* Empty until validation fails, so it must take no space when it says nothing. */
.contact-error {
    display: block;
    font-size: .8rem;
    color: #991B1B;
    margin-top: 5px;
}
.contact-error:empty { display: none; }

.contact-success {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid #A7F3D0;
    border-radius: 18px;
    padding: 36px 28px;
    box-shadow: 0 10px 30px rgba(4, 120, 87, .08);
}

.contact-success h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-on-light-primary, #0F172A);
    margin: 0 0 10px;
}

html[lang="he"] .contact-success h2 { font-weight: 700; }

.contact-success p {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--text-on-light-secondary, #475569);
    margin: 0;
}

.contact-success-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 12px;
}
