﻿.contact-page-section {
    padding-top: 180px;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.contact-page {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 30px var(--site-padding) 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.contact-hero {
    text-align: center;
}

.contact-hero__title {
    margin-bottom: 12px;
}

.contact-form-wrap {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.contact-form__row--full {
    grid-template-columns: 1fr;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1.5px solid var(--color-brand);
    border-radius: 50px;
    padding: 1.2rem 2.2rem;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--color-brand-mid);
    outline: none;
    transition: border-color 0.2s;
}

.contact-form textarea {
    border-radius: 20px;
    resize: none;
}

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: var(--color-brand-mid);
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: var(--color-brand-mid);
    }

.contact-form__row--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .contact-form__row--checkbox input[type="checkbox"] {
        appearance: none;
        accent-color: var(--color-brand);
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        position: relative;
        border: 2px solid var(--color-brand);
        border-color: var(--color-brand) !important;
        border-radius: 6px;
        cursor: pointer;
        padding: 0;
    }

        .contact-form__row--checkbox input[type="checkbox"]:checked {
            background-color: var(--color-brand);
            border-color: var(--color-brand);
        }

        .contact-form__row--checkbox input[type="checkbox"]:checked::after {
            content: '✔';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -52%);
            color: #FAF3E3;
            font-size: 1rem;
            line-height: 1;
        }

    .contact-form__row--checkbox label {
        color: var(--color-brand);
        cursor: pointer;
    }

.checkbox-error label {
    color: #c0392b;
}

.checkbox-error input[type="checkbox"] {
    outline: 2px solid #c0392b;
    border-radius: 2px;
}

.contact-form__submit {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

    .contact-form__submit .hp-btn {
        min-width: 160px;
        padding: 14px 48px;
    }

.contact-form select {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1.5px solid var(--color-brand);
    border-radius: 50px;
    padding: 16px 30px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--color-brand-mid);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d361e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    transition: border-color 0.2s;
}

    .contact-form select option[value=""] {
        color: var(--color-brand);
    }

    .contact-form select option {
        color: var(--color-brand);
        background: var(--color-cream);
    }

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 999px transparent inset !important;
    box-shadow: 0 0 0 999px transparent inset !important;
    -webkit-text-fill-color: var(--color-brand) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--color-brand);
}

.contact-form input.--filled,
.contact-form select.--filled,
.contact-form textarea.--filled {
    border-color: var(--color-brand-mid);
    color: var(--color-brand);
}

.contact-info {
    width: 100%;
    background: rgba(109, 54, 30, 0.82);
    border-radius: 30px;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.contact-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    width: 100%;
    text-align: center;
}

.contact-info__col h3 {
    color: #ffffff;
    margin-bottom: 16px;
}

.contact-info__pill {
    display: inline-block;
    border: 1.5px solid #ffffff;
    border-radius: 50px;
    padding: 8px 34px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

    .contact-info__pill:hover {
        background: #ffffff;
        color: var(--color-brand);
    }

.contact-info__newsletter {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

    .contact-info__newsletter p {
        color: #ffffff;
        max-width: 560px;
    }

.contact-result {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--fw-medium);
    padding: 14px 28px;
    border-radius: 50px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.contact-result--success {
    background: rgba(109, 54, 30, 0.1);
    color: var(--color-brand);
}

.contact-result--error {
    background: rgba(200, 50, 50, 0.08);
    color: #c03030;
}

@media (max-width: 900px) {
    .contact-page-section {
        padding-top: 0px;
    }

    .contact-page {
        padding: 120px var(--site-padding-mobile) 80px;
        gap: 32px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-info__newsletter {
        padding: 0 25px;
    }

    .contact-info__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form__submit .hp-btn {
        padding: 10px 48px;
    }

    .contact-form input, .contact-form textarea {
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 600px) {
    .contact-info__pill {
        padding: 7px 18px;
        width: 150px;
    }
}
