/* Base document, fonts and the contact form. The landing visual system lives in enterprise.css. */
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/geist-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
    --font-family-sans: "Geist", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-family-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --header-height: 4.5rem;
    --header-blur: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-family-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* FocusOnNavigate moves focus to the page heading; it is not a control, so no ring. */
h1:focus {
    outline: none;
}

/* Contact form */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label {
    font-weight: 600;
}

.form-field--full {
    grid-column: 1 / -1;
}

.input {
    padding: 0.85rem 1rem;
    border-radius: 3px;
    border: 1px solid var(--line-strong, #b9c9e0);
    background-color: #fff;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:hover {
    border-color: var(--blue-400, #6f93c9);
}

.input:focus {
    outline: none;
    border-color: var(--brand-blue, #1e417f);
    box-shadow: 0 0 0 3px rgba(30, 65, 127, 0.16);
}

.input--textarea {
    resize: vertical;
    min-height: 150px;
}

.contact__form .validation-summary-errors {
    margin-top: 0;
}

.form-actions {
    margin-top: 1.5rem;
}

.submit-button {
    border: none;
    padding: 1.1rem 3rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    margin-top: 1.5rem;
}

.submit-button--loading,
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button:hover,
.submit-button:focus {
    transform: translateY(-2px);
}

.submit-button:focus-visible {
    outline: 3px solid var(--brand-blue, #1e417f);
    outline-offset: 3px;
}

.form-feedback {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(141, 198, 64, 0.14);
    border: 1px solid rgba(141, 198, 64, 0.45);
    border-radius: 3px;
    color: #2b4c0a;
}

.form-feedback--error {
    background-color: rgba(180, 35, 28, 0.08);
    border-color: rgba(180, 35, 28, 0.35);
    color: #5a1411;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--slate, #52647f);
    margin: 0;
}

.validation-summary-errors {
    margin-bottom: 1rem;
    background-color: rgba(227, 52, 47, 0.08);
    border: 1px solid rgba(227, 52, 47, 0.25);
    border-radius: 3px;
    padding: 1rem 1.25rem 1rem 2.25rem;
    color: #8a1f1f;
}

.validation-message {
    font-size: 0.85rem;
    color: #b4231c;
}

.captcha-field {
    display: grid;
    gap: 0.5rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.captcha-question {
    background-color: var(--blue-100, #e7edf6);
    color: var(--ink, #162d56);
    padding: 0.75rem 1.1rem;
    border-radius: 3px;
    font-family: var(--font-family-mono);
    font-weight: 600;
    min-width: 7rem;
    text-align: center;
}

.captcha-input {
    max-width: 6rem;
    text-align: center;
    font-weight: 600;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (min-width: 900px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
