/* CONTACT FORM */

.contact-form-wrapper {
    --contact-accent: #142331;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    color: #142331;
}

.contact-form-heading {
    margin-bottom: 32px;
}

.contact-form-heading .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--contact-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-form-heading h2 {
    margin: 0 0 14px;
    color: #142331;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
}

.contact-form-heading p {
    max-width: 680px;
    margin: 0;
    color: #64717c;
    font-size: 16px;
    line-height: 1.7;
}

/* FORM */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
	text-align: left;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.contact-form .form-group label {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dce2e6;
    border-radius: 6px;
    background: #f8fafb;
    color: #142331;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9aa5ad;
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--contact-accent);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--contact-accent) 14%, transparent);
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

/* CONSENT */

.contact-form .form-consent {
    padding-top: 2px;
}

.contact-form .form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-white);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.contact-form .form-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--contact-accent);
    cursor: pointer;
}

.contact-form .form-consent a {
    color: var(--contact-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form .form-consent a:hover {
    color: #142331;
}

/* BUTTONS */

.contact-form .contact-submit,
.contact-form-wrapper > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    min-height: 52px;
    padding: 14px 26px;
    border: 0;
    border-radius: 6px;
    background: #142331;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.contact-form .contact-submit:hover,
.contact-form-wrapper > .btn:hover {
    background: var(--contact-accent);
    transform: translateY(-2px);
}

.contact-form .contact-submit:focus-visible,
.contact-form-wrapper > .btn:focus-visible {
    outline: 3px solid var(--contact-accent);
    outline-offset: 3px;
}

.contact-form .contact-submit span {
    font-size: 19px;
    line-height: 1;
}

.contact-form .form-required-note {
    margin: -10px 0 0;
    color: #84909a;
    font-size: 12px;
}

/* STATUS */

.contact-form-wrapper .form-message {
    margin-bottom: 24px;
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form-wrapper .form-message.success {
    border-color: #b8d9c2;
    background: #f0f8f2;
    color: #28633b;
}

.contact-form-wrapper .form-message.error {
    border-color: #edc3c3;
    background: #fff5f5;
    color: #a52b2b;
}

/* HONEYPOT */

.contact-form .form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .contact-form-wrapper {
        max-width: 100%;
    }

    .contact-form-heading {
        margin-bottom: 26px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-form {
        gap: 19px;
    }

    .contact-form .contact-submit,
    .contact-form-wrapper > .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-form input,
    .contact-form textarea,
    .contact-form .contact-submit,
    .contact-form-wrapper > .btn {
        transition: none;
    }
}
