.contact-section {
    display: grid;
    grid-template-columns: minmax(245px, 0.78fr) minmax(0, 1.35fr);
    align-items: start;
    gap: 18px;
    padding-top: 37px;
    padding-bottom: 48px;
}

.contact-details,
.contact-form-card {
    min-width: 0;
    padding: 23px;
}

.contact-details {
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgb(246 106 8 / 38%);
    background: linear-gradient(155deg, #fff, #f8fafd);
}

.contact-details::after {
    position: absolute;
    right: -40px;
    bottom: -55px;
    width: 155px;
    height: 155px;
    border: 1px solid rgb(246 106 8 / 14%);
    border-radius: 50%;
    box-shadow: 0 0 0 17px rgb(246 106 8 / 4%);
    content: "";
    pointer-events: none;
}

.contact-details > h2,
.contact-form-card > h2 {
    margin: 7px 0 8px;
    color: var(--navy);
    font-size: clamp(18px, 2.4vw, 23px);
    font-weight: 750;
    line-height: 1.35;
}

.contact-details > p {
    margin: 0 0 19px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
}

.contact-detail {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    color: var(--navy);
    text-decoration: none;
}

.contact-detail + .contact-detail {
    border-top: 1px solid var(--line);
}

.contact-detail:hover .contact-detail-value {
    color: var(--orange-dark);
}

.contact-detail-icon {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border-radius: 50%;
    color: var(--orange);
    background: #fff3e9;
}

.contact-detail-icon > svg {
    width: 19px;
    height: 19px;
}

.contact-detail > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.contact-detail-label {
    color: #788397;
    font-size: 9px;
}

.contact-detail-value {
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: 11px;
    font-weight: 650;
    transition: color 160ms ease;
}

.contact-side-note {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: #657187;
    font-size: 9px;
    font-style: italic;
}

.contact-note-ball {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #ffad52, var(--orange) 75%);
    box-shadow: inset -2px -2px 3px rgb(0 0 0 / 16%);
}

.contact-form-card {
    border-top: 2px solid var(--orange);
}

.contact-form-card > h2 {
    margin-bottom: 17px;
}

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

.contact-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 6px;
}

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

.contact-field > label {
    color: var(--navy);
    font-size: 10px;
    font-weight: 650;
}

.contact-field > input,
.contact-field > textarea {
    width: 100%;
    min-height: 39px;
    padding: 9px 11px;
    border: 1px solid #e1e6ed;
    border-radius: 5px;
    outline: none;
    color: var(--navy);
    background: #fcfdff;
    font-size: 11px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.contact-field > textarea {
    min-height: 116px;
    resize: vertical;
    line-height: 1.65;
}

.contact-field > input:focus,
.contact-field > textarea:focus {
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgb(246 106 8 / 11%);
}

.contact-field-error,
.contact-form-errors {
    color: #a52e27;
    font-size: 9px;
    line-height: 1.55;
}

.contact-form-errors {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border: 1px solid #f2cfcb;
    border-radius: 5px;
    background: #fff7f6;
}

.contact-form-errors ul {
    margin: 0;
    padding-left: 16px;
}

.contact-success {
    margin: 0 0 15px;
    padding: 11px 13px;
    border: 1px solid #b8e3cc;
    border-radius: 5px;
    color: #17613c;
    background: #effaf3;
    font-size: 11px;
    line-height: 1.6;
}

.contact-submit {
    justify-self: start;
    min-height: 41px;
    margin-top: 3px;
}

@media (max-width: 800px) {
    .contact-section {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 13px;
    }

    .contact-details,
    .contact-form-card {
        padding: 17px;
    }
}

@media (max-width: 620px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 11px;
        padding-top: 23px;
        padding-bottom: 30px;
    }

    .contact-details,
    .contact-form-card {
        padding: 17px 15px;
    }

    .contact-form-card > h2 {
        font-size: 18px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .contact-field-full {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-detail-value,
    .contact-field > input,
    .contact-field > textarea {
        transition-duration: 0.01ms;
    }
}
