.contact-page {
    background: var(--paper);
    color: var(--ink);
}

.contact-page main {
    overflow: hidden;
}

.contact-hero {
    padding: 136px 0 72px;
    background: var(--paper);
    text-align: center;
}

.contact-hero::before {
    content: none;
}

.contact-hero .site-shell {
    max-width: 900px;
}

.contact-hero-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid color-mix(in srgb, var(--so-primary) 14%, transparent);
    border-radius: 4px;
    background: color-mix(in srgb, var(--so-primary) 7%, transparent);
    color: var(--so-primary);
}

.contact-hero-icon .iconify {
    width: 20px;
    height: 20px;
}

.contact-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.12;
}

.contact-hero-lead {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.contact-main {
    padding: 0 0 72px;
    background: var(--paper);
}

.contact-main-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.88fr);
    gap: 24px;
    align-items: start;
}

.contact-details,
.contact-form-panel {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    box-shadow: none;
}

.contact-details {
    position: sticky;
    top: 88px;
    padding: 28px;
}

.contact-details h2,
.contact-form-heading h2,
.contact-faq-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-details dl {
    display: grid;
    gap: 24px;
    margin: 28px 0 0;
}

.contact-details dl > div {
    position: relative;
    min-height: 42px;
    padding-left: 54px;
}

.contact-details dt {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.contact-details dt .iconify {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--so-primary) 10%, transparent);
    color: var(--so-primary);
}

.contact-details dl > div:nth-child(2) dt .iconify {
    background: color-mix(in srgb, var(--so-positive) 10%, transparent);
    color: var(--so-positive);
}

.contact-details dl > div:nth-child(3) dt .iconify {
    background: color-mix(in srgb, var(--so-warning) 11%, transparent);
    color: var(--so-warning);
}

.contact-details dl > div:nth-child(4) dt .iconify {
    background: color-mix(in srgb, var(--so-violet) 10%, transparent);
    color: var(--so-violet);
}

.contact-details dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--so-primary);
}

.contact-work-hours {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.contact-work-hours h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
}

.contact-work-hours > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.contact-work-hours strong {
    color: var(--ink);
    font-weight: 600;
}

.contact-response-note,
.contact-data-note {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 11px;
    border: 1px solid color-mix(in srgb, var(--so-primary) 18%, var(--line));
    border-radius: 5px;
    background: color-mix(in srgb, var(--so-primary) 7%, var(--paper));
    color: var(--ink);
}

.contact-response-note {
    margin-top: 24px;
    padding: 14px;
}

.contact-response-note > .iconify,
.contact-data-note > .iconify {
    width: 19px;
    height: 19px;
    color: var(--so-primary);
}

.contact-response-note strong,
.contact-data-note strong {
    font-size: 13px;
}

.contact-response-note p,
.contact-data-note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.contact-form-panel {
    padding: 30px;
}

.contact-form-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.contact-notice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    margin-top: 22px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 13px;
}

.contact-notice .iconify {
    width: 18px;
    height: 18px;
}

.contact-notice strong {
    display: block;
}

.contact-notice p {
    margin: 4px 0 0;
}

.contact-notice-success {
    border-color: color-mix(in srgb, var(--so-positive) 30%, var(--line));
    background: color-mix(in srgb, var(--so-positive) 7%, var(--paper));
    color: var(--so-positive);
}

.contact-notice-error {
    border-color: color-mix(in srgb, var(--so-danger) 30%, var(--line));
    background: color-mix(in srgb, var(--so-danger) 7%, var(--paper));
    color: var(--so-danger);
}

.contact-form {
    margin-top: 24px;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form label {
    display: block;
}

.contact-form label > span:first-child {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.contact-form label b {
    color: var(--so-danger);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    outline: none;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--so-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--so-primary) 13%, transparent);
}

.contact-form textarea {
    min-height: 138px;
    padding-top: 11px;
    padding-bottom: 11px;
    resize: vertical;
    line-height: 1.65;
}

.contact-field-full {
    margin-top: 18px;
}

.contact-message-meta {
    display: flex !important;
    justify-content: space-between;
    margin: 6px 0 0 !important;
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.contact-message-meta b {
    color: inherit;
    font-weight: 400;
}

.contact-verification {
    margin-top: 20px;
}

.contact-verification > label {
    max-width: 340px;
}

.contact-captcha-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
    margin: 0 !important;
}

.contact-captcha-input {
    display: block;
    margin: 0 !important;
}

.contact-captcha-input input {
    min-height: 53px;
    text-transform: uppercase;
}

.contact-captcha-image {
    position: relative;
    display: flex;
    height: 53px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(112, 126, 158, 0.2);
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
    cursor: pointer;
}

.contact-captcha-image:disabled {
    cursor: wait;
}

.contact-captcha-image.is-captcha-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-top-color: var(--so-primary);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.84);
    content: "";
    animation: contact-captcha-spin 0.7s linear infinite;
}

.contact-captcha-image img {
    display: block;
    width: 132px;
    height: 53px;
    object-fit: cover;
}

.contact-captcha-meter {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 2px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.18);
    pointer-events: none;
}

.contact-captcha-progress {
    display: block;
    width: 100%;
    height: 100%;
    background: #2563eb;
    transform: scaleX(1);
    transform-origin: left center;
}

.contact-captcha-row.is-captcha-error .contact-captcha-progress {
    background: #dc2626;
}

@keyframes contact-captcha-spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-verification small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.contact-data-note {
    margin-top: 22px;
    padding: 15px;
}

.contact-privacy {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 20px;
}

.contact-privacy input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--so-primary);
}

.contact-privacy > span {
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65;
}

.contact-privacy a {
    color: var(--so-primary);
    text-underline-offset: 3px;
}

.contact-form-footer {
    margin-top: 24px;
}

.contact-form-footer button {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 5px;
    background: var(--so-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.contact-form-footer button:hover {
    background: var(--so-primary-hover);
}

.contact-faq {
    padding: 64px 0;
    background: var(--soft);
}

.contact-faq-heading {
    margin-bottom: 38px;
    text-align: center;
}

.contact-faq-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.contact-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-faq-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.contact-faq-grid h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
}

.contact-faq-grid h3 .iconify {
    width: 19px;
    height: 19px;
    color: var(--so-primary);
}

.contact-faq-grid p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        position: static;
    }
}

@media (max-width: 680px) {
    .contact-hero {
        padding: 112px 0 56px;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-hero-lead {
        font-size: 16px;
    }

    .contact-main {
        padding-bottom: 56px;
    }

    .contact-details,
    .contact-form-panel {
        padding: 22px;
    }

    .contact-field-grid,
    .contact-faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-faq {
        padding: 56px 0;
    }
}

@media (max-width: 430px) {
    .contact-captcha-row {
        grid-template-columns: 1fr;
    }

    .contact-captcha-image,
    .contact-captcha-image img {
        width: 132px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-captcha-image.is-captcha-loading::after {
        animation-duration: 1.4s;
    }
}
