:root {
    --wk-form-primary: #5f7d64;
    --wk-form-primary-light: #66816a;
    --wk-form-border: #dce6da;
    --wk-form-bg-light: #f6f8f5;
    --wk-form-text: #2f3a31;
    --wk-form-text-muted: #667066;
}

/* ---------- Visibility ---------- */

.dynamic,
.contact-pane {
    display: none;
}

.dynamic.active {
    display: grid;
}

.contact-pane {
    opacity: 0;
    pointer-events: none;
}

.contact-pane.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Layout ---------- */

.top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 42px;
}

.top h1,
.top p {
    margin-top: 0;
}

.top h2 {
    margin-bottom: 1.5rem;
}

.form-grid,
.dynamic.active {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ---------- Typography ---------- */

.eyebrow {
    color: #6b886f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 16px;
}


.s-contact-form h2 {
    margin-top: 0;
}


.lead {
    font-size: 18px;
    line-height: 1.8;
    color: var(--wk-form-text-muted);
    max-width: 820px;
}

.s-contact-form h2 span {
    color: var(--wk-form-primary-light);
}

/* ---------- Contact Side ---------- */

.contact-side {
    border-left: 1px solid var(--wk-form-border);
    padding-left: 40px;
}

.person {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.person img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 24px;
}

.person h3 {
    font-size: 26px;
    margin-bottom: 4px;
}

.person p {
    color: var(--wk-form-text-muted);
    line-height: 1.5;
    margin-top: 0;
}

.quick-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.contact-card {
    background: white;
    border: 1px solid #dde7db;
    border-radius: 22px;
    padding: 18px;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-card span {
    color: var(--wk-form-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Button only show above contact card for mobile*/
.c-button.contact-form-mobile-button {
    display: none;
}


/* ---------- Form ---------- */

.form-wrap {
    background: white;
    border: 1px solid var(--wk-form-border);
    border-radius: 34px;
    padding: 30px;
}

.type-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab {
    border: 1px solid #d9e4d7;
    background: #f4f7f3;
    padding: 12px 18px;
    border-radius: 60px;
    font-weight: 600;
    color: #5d6d60;
    cursor: pointer;
    transition: 0.2s;
}

.tab.active {
    background: #0a2d23;
    color: #c7f1c5;
    border-color: var(--wk-form-primary);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.contact-form-form .field .radio-group,
.contact-form-form .field .checkbox-group {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}

.contact-form-form .field .radio-group label,
.contact-form-form .field .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

label {
    font-size: 13px;
    font-weight: 700;
    color: #49554c;
}

.contact-form-form input,
.contact-form-form select,
.contact-form-form textarea {
    border: 1px solid var(--wk-form-border);
    background: var(--wk-form-bg-light);
    border-radius: 16px;
    padding: 14px;
    font-size: 14px;
    color: var(--wk-form-text);
}

.contact-form-form textarea {
    min-height: 90px;
    resize: none;
}

.contact-form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-help {
    margin-left: 5px;
    color: var(--wk-form-text-muted);
}

/* ---------- Bottom ---------- */

.bottom {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--wk-form-text-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 70%;
}

.submit {
    border: none;
    background: #0a2d23;
    color: #c7f1c5;
    padding: 16px 30px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.contact-form-response {
    margin-bottom: 20px;
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    overflow: hidden;
    transition:
        opacity .3s ease,
        max-height .3s ease,
        visibility 0s linear;
}

.success-message {
    padding: 16px;
    border-radius: 12px;
    color: #155724;
    background: #d4edda;
}

.error-message {
    padding: 16px;
    border-radius: 12px;
    color: #721c24;
    background: #f8d7da;
}

.error-message li {
    color: #721c24;
}

.success-message,
.error-message {
    animation: contactFadeIn .25s ease;
}


.submit.is-loading {
    opacity: 0.7;
    cursor: wait;
}


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


.contact-form-response.is-hidden {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    pointer-events: none;
    transition:
        opacity .3s ease,
        max-height .3s ease,
        visibility 0s linear .3s;
}

.form-consent {
    margin-left: 5px;
}

.form-consent p {
    color: #49554c;
    user-select: none;
    font-size: 14px;
    line-height: 1;
    margin: 0;
}

.form-consent label,
.form-consent input[type="checkbox"] {
    cursor: pointer;
}

.form-consent a {
    color: #0a2d23;
}

.form-consent a:hover {
    text-decoration: underline;
}

.field.error .checkbox-group label,
.field.error .radio-group label,
.field.error.field-consent p {
    color: #dc3545;
}

@keyframes contactFadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.field.error {

    input,
    select,
    textarea {
        border-color: #dc2626;
    }
}


.contact-form-form .active.empty~.bottom {
    display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
    .top {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-side {
        border-left: none;
        padding-left: 0;
    }

    .form-grid,
    .dynamic.active {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 40px;
    }

    .form-grid,
    .dynamic.active,
    .quick-contact {
        grid-template-columns: 1fr;
    }

    .bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .check {
        max-width: 100%;
    }

    .form-consent {
        margin-left: 0;
    }

    .tab {
        padding: 8px 12px;
    }

    .c-button.contact-form-mobile-button {
        display: block;
    }


}