.contact {
    background: var(--green);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
}

.contact-title h2 {
    font-size: clamp(43px,5.2vw,74px);
}

.contact-title h2 span {
    color: var(--cream);
}

.contact-title > p {
    max-width: 370px;
    margin-top: 30px;
    font-size: 15px;
}

.contact-pattern {
    height: 130px;
    max-width: 380px;
    margin-top: 36px;
    background: url('../../assets/images/pattern-coffee.png') center/cover;
    opacity: .35;
}

.form-panel {
    background: var(--cream);
    padding: 35px;
    border-radius: 12px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.lead-form label {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 600;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lead-form input:not([type=range]):not([type=checkbox]),.lead-form select,.lead-form textarea {
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #c3bdb1;
    border-radius: 0;
    padding: 8px 0 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--coffee);
}

.lead-form input::placeholder,.lead-form textarea::placeholder {
    color: #766e64;
    opacity: 1;
}

.lead-form textarea {
    resize: vertical;
    min-height: 65px;
    max-height: 240px;
}

.term-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.term-label output {
    font-size: 15px;
    letter-spacing: -.03em;
}

.term-field input[type=range] {
    width: 100%;
    accent-color: var(--coffee);
    cursor: pointer;
    height: 25px;
    margin: 0;
}

.term-ends {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    opacity: .65;
}

.term-field small {
    display: block;
    font-size: 10px;
    margin-top: 8px;
    opacity: .7;
}

.lead-form .submit {
    width: 100%;
    justify-content: space-between;
}

.form-status {
    font-size: 13px;
    line-height: 1.5;
    margin: 0!important;
}

.form-status:empty {
    display: none;
}

.form-status.success {
    color: #286143;
}

.form-status.error {
    color: #9a3022;
}

.lead-form [aria-invalid=true] {
    border-bottom-color: #a93727!important;
}

.honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form .consent {
    display: flex;
    flex-direction: row;
    align-items: start;
    font-size: 11px;
    font-weight: 400;
}

.consent a {
    text-decoration: underline;
}

.consent input {
    margin-top: 2px;
}

dialog {
    background: var(--cream);
    color: var(--coffee);
    border: 0;
    border-radius: 16px;
    padding: 40px;
    width: min(590px,calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    box-shadow: 0 25px 100px #0004;
}

dialog::backdrop {
    background: rgba(24,19,15,.66);
    backdrop-filter: blur(5px);
}

dialog h2 {
    font-size: 37px;
    padding-right: 10px;
}

.dialog-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 50%;
    font-size: 27px;
    color: var(--coffee);
    line-height: 1;
}

.dialog-intro {
    font-size: 13px;
    opacity: .65;
    margin: 18px 0 26px;
}

.specs {
    margin: 25px 0;
}

.specs > div {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.specs dt {
    opacity: .65;
}

.specs dd {
    margin: 0;
    text-align: right;
    max-width: 60%;
}

.spec-note {
    font-size: 12px;
    opacity: .65;
}

.spec-dialog>.btn {
    margin-top: 23px;
    width: 100%;
}

.analytics-consent {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    max-width: 600px;
    padding: 20px;
    background: var(--cream);
    border: 1px solid var(--line);
    z-index: 60;
    box-shadow: 0 5px 30px #0002;
    border-radius: 10px;
    font-size: 13px;
}

.analytics-consent .btn {
    margin: 12px 8px 0 0;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 12px;
}

.analytics-consent .btn:after {
    display: none;
}

@media (max-width: 1000px) {
    .contact-grid {
        gap: 35px;
    }
    .form-panel {
        padding: 25px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 35px;
    }
    .contact-title h2 {
        font-size: clamp(35px,11.5vw,46px);
    }
    .contact-pattern {
        display: none;
    }
    .form-panel {
        padding: 25px 20px;
    }
    .lead-form {
        gap: 21px;
    }
    dialog {
        padding: 35px 22px 25px;
    }
    dialog h2 {
        font-size: 30px;
    }
    .specs > div {
        gap: 14px;
    }
    .specs dd {
        max-width: 55%;
    }
}
