﻿/* =========================
   Base
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #eef4fa;
    line-height: 1.6;
}


/* =========================
   Contact Section
   ========================= */

.contact-section {
    min-height: 100vh;
    padding: 60px 8% 80px;
}

.contact-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================
   Back Link
   ========================= */

.contact-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 9px 14px;
    border: 1px solid #cbd8e6;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #52647d;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .contact-back-link svg {
        width: 17px;
        height: 17px;
    }

    .contact-back-link:hover {
        border-color: #9fb2c7;
        background-color: #ffffff;
        color: #1e293b;
    }


/* =========================
   Contact Card
   ========================= */

.contact-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
    border: 1px solid #d9e3ee;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 18px 45px rgba(38, 54, 79, 0.08);
}


/* =========================
   Contact Intro
   ========================= */

.contact-intro {
    padding: 50px 44px;
    background-color: #e4eef8;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: #52647d;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-title {
    margin: 0 0 18px;
    color: #1e293b;
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.contact-description {
    max-width: 430px;
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(82, 100, 125, 0.18);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.65);
    color: #52647d;
}

    .contact-info-icon svg {
        width: 19px;
        height: 19px;
    }

.contact-info-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-label {
    color: #52647d;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-value {
    color: #64748b;
    font-size: 0.88rem;
}


/* =========================
   Form
   ========================= */

.contact-form-wrapper {
    padding: 50px 44px;
}

.contact-form {
    width: 100%;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contact-form-group {
    margin-bottom: 22px;
}

    .contact-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #1e293b;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        display: block;
        width: 100%;
        padding: 13px 15px;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        background-color: #ffffff;
        color: #1e293b;
        font-family: inherit;
        font-size: 0.95rem;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .contact-form-group input {
        height: 48px;
    }

    .contact-form-group textarea {
        min-height: 160px;
        resize: vertical;
        line-height: 1.7;
    }

        .contact-form-group input::placeholder,
        .contact-form-group textarea::placeholder {
            color: #94a3b8;
        }

        .contact-form-group input:focus,
        .contact-form-group textarea:focus {
            border-color: #52647d;
            box-shadow: 0 0 0 3px rgba(82, 100, 125, 0.10);
        }


/* =========================
   reCAPTCHA
   ========================= */

.contact-captcha {
    margin-top: 4px;
    margin-bottom: 26px;
}

.contact-captcha-placeholder {
    display: flex;
    align-items: center;
    width: 304px;
    min-height: 78px;
    padding: 15px;
    border: 1px solid #dbe2ea;
    border-radius: 4px;
    background-color: #f8fafc;
    color: #94a3b8;
    font-size: 0.85rem;
}


/* =========================
   Submit Button
   ========================= */

.contact-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 6px;
    background-color: #26364f;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .contact-submit-button:hover {
        background-color: #1e293b;
        transform: translateY(-1px);
    }

    .contact-submit-button svg {
        width: 18px;
        height: 18px;
    }

.contact-success-message {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2e7d46;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 1;
    transition: opacity 0.4s ease;
}

    .contact-success-message svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }

    .contact-success-message.is-hidden {
        opacity: 0;
        pointer-events: none;
    }


/* =========================
   Responsive
   ========================= */

@media (max-width: 767.98px) {
    .contact-section {
        min-height: auto;
        padding: 30px 18px 50px;
    }

    .contact-back-link {
        margin-bottom: 20px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        border-radius: 10px;
    }

    .contact-intro {
        padding: 34px 24px;
    }

    .contact-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .contact-description {
        font-size: 0.95rem;
    }

    .contact-info {
        margin-top: 30px;
        padding-top: 22px;
    }

    .contact-form-wrapper {
        padding: 34px 24px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        font-size: 1rem;
    }

    .contact-captcha-placeholder {
        width: 100%;
        max-width: 304px;
    }

    .contact-submit-button {
        width: 100%;
    }

    .contact-form-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .contact-success-message {
        width: 100%;
    }

    .contact-submit-button {
        width: 100%;
    }
}
