/* Contact page - matches sample layout */
:root {
    --contact-pink: #ffd8de;
    --contact-pink-border: #f7c7d0;
    --contact-red: #e64b51;
    --contact-orange: #f7a42c;
    --contact-text: #1c1c1c;
}

.contact-form-section {
    padding: 40px 0 80px;
    background: #fff;
}

.contact-form__wrapper {
    width: min(1100px, 96%);
    margin: 0 auto;
}

.contact-form__header {
    text-align: center;
    margin-bottom: 24px;
}

.contact-form__title {
    margin: 0;
    font-size: 54px;
    font-weight: 800;
    color: var(--contact-red);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.contact-form__header p {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #424242;
}

.contact-form__subtitle {
    color: #D7172A;
    text-decoration: underline;
}

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

.contact-block {
    display: grid;
    grid-template-columns: 240px 1fr;
    /* gap: 12px; */
    align-items: center;
    /* background: var(--contact-pink); */
    border-radius: 8px;
}

.contact-block--textarea {
    align-items: flex-start;
}

.contact-block__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: var(--contact-text);
    min-width: 160px;
    padding: 16px;
    background: #FFCBD1;
    height: 80px;
    border-radius: 15px 0 0 15px;
}

.contact-label-text {
    font-size: 16px;
}

.contact-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--contact-red);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.contact-block__field {
    width: 100%;
    padding: 16px;
    background: #FFEAEE;
    height: 80px;
    border-radius: 0 15px 15px 0;
    display: flex;
    text-align: center;
}

.contact-block__label--textarea {
    height: 200px;
}

.contact-block__field--textarea {
    height: 200px;
}

.contact-block__field input,
.contact-block__field textarea {
    width: 100%;
    padding: 14px 12px;
    border-radius: 8px;
    border: 1px solid var(--contact-pink-border);
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
    color: var(--contact-text);
}

.contact-block__field textarea {
    min-height: 200px;
    resize: vertical;
}

.contact-input-error {
    outline: 2px solid #e64b51;
}

.contact-block__field--stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-methods {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #393939;
    cursor: pointer;
}

.contact-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    /* accent-color: var(--contact-orange); */
}

.contact-form__actions {
    text-align: center;
    margin-top: 8px;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    background: var(--contact-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.contact-form__submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.contact-form__submit:active {
    transform: translateY(0);
}

.contact-submit-icon {
    font-size: 13px;
    line-height: 1;
}

/* Contact form alert messages */
.contact-alert {
    padding: 16px 40px 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in;
    position: relative;
}

.contact-alert.contact-alert-closing {
    animation: fadeOut 0.3s ease-out forwards;
}

.contact-alert-error {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    color: #cc0000;
}

.contact-alert-success {
    background-color: #e6f7e6;
    border: 1px solid #00cc00;
    color: #006600;
}

.contact-alert p {
    margin: 0;
    font-weight: 500;
}

.contact-alert-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-alert-close:hover {
    opacity: 1;
}

.contact-alert-error .contact-alert-close {
    color: #cc0000;
}

.contact-alert-success .contact-alert-close {
    color: #006600;
}

/* Success page */
.contact-success {
    padding: 60px 0 120px;
    background: #fff;
}

.contact-success__wrapper {
    width: min(1100px, 96%);
    margin: 0 auto;
    text-align: center;
}

.contact-success__title {
    margin: 0 0 28px;
    font-size: 54px;
    font-weight: 900;
    color: #D7172A;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.contact-success__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.contact-success__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--contact-orange);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-success__home:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.contact-success__icon {
    font-size: 12px;
}

.contact-success__line {
    display: block;
    width: 200px;
    height: 6px;
    background: var(--contact-red);
    border-radius: 999px;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 28px 0 60px;
    }

    .contact-form__wrapper {
        width: auto;
        padding: 0 12px;
        max-width: 100%;
    }

    .contact-form__title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .contact-form__header p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .contact-block {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-block__label {
        border-radius: 15px 15px 0 0;
        height: auto;
        min-height: 50px;
        padding: 12px 16px;
        justify-content: space-between;
    }

    .contact-label-text {
        font-size: 15px;
    }

    .contact-badge {
        padding: 4px 10px;
        font-size: 12px;
    }

    .contact-block__field {
        border-radius: 0 0 15px 15px;
        height: auto;
        min-height: 60px;
        padding: 12px 16px;
        background: #FFEAEE;
        width: auto;
        max-width: 100%;
    }

    .contact-block__label--textarea {
        height: auto;
        min-height: 50px;
    }

    .contact-block__field--textarea {
        height: auto;
        min-height: 180px;
    }

    .contact-block__field input,
    .contact-block__field textarea {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .contact-block__field textarea {
        min-height: 160px;
    }

    .contact-methods {
        gap: 14px;
        margin-bottom: 8px;
    }

    .contact-radio {
        font-size: 14px;
    }

    .contact-radio input[type="radio"] {
        width: 18px;
        height: 18px;
        accent-color: var(--contact-orange);
    }

    .contact-form__submit {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-form__actions {
        margin-top: 12px;
    }
}