/* ====================================================== */
/* ==================  Contact Page  ==================== */
/* ====================================================== */

/* ===== Site Header Section ===== */
.site-header {
    position: relative;
    padding: 20px 94px;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Introductory Text (Optional Section Heading) ===== */
.driven-text {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    color: var(--primary-color);
}

/* ====================================================== */
/* ==================  Contact Container  =============== */
/* ====================================================== */

.contact-container {
    position: relative;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    padding: 48px 30px 108px 30px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 140px auto;
}

/* ===== Left Column - Contact Form Content ===== */
.form-content {
    flex: 1 1 600px;
}

.form-content h1 {
    color: var(--primary-color);
    font-size: 34px;
    font-weight: var(--font-weight-bold);
    line-height: 50px;
    margin: 16px 0 0 0;
}

/* ===== Form Wrapper ===== */
form {
    display: flex;
    flex-direction: column;
    margin: 80px 0 0 0;
}

/* ===== Row of Inputs (Responsive Grid) ===== */
.row-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 60px;
}

/* ===== Input Group (Label + Input Field) ===== */
.input-group {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
}

label {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: var(--font-weight-normal);
    line-height: 36px;
}

/* ===== Input & Textarea Fields ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    border: none;
    border-bottom: 1px solid #cacaca;
    font-size: 16px;
    padding: 8px 0;
    background: transparent;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    resize: none;
    transition: border-color 0.3s ease;
}

/* ===== Focus State for Inputs ===== */
input:focus,
textarea:focus {
    border-bottom-color: var(--primary-color);
    outline: none;
}

/* ===== Message Textarea Section ===== */
.message-group {
    margin-bottom: 74px;
    display: flex;
    flex-direction: column;
}

textarea {
    min-height: 80px;
}

/* ===== Submit Button ===== */
.form-content button {
    gap: 8px;
    border-radius: 40px;
    background: var(--primary-color);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    border: 2px solid transparent;
    color: var(--white);
    padding: 10px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.form-content button:hover {
    background-color: var(--primary-hover);
}

/* ====================================================== */
/* ==================  Social Icons ===================== */
/* ====================================================== */

/* ===== Container for Social Links ===== */
.social-icons-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    margin-top: 20px;
}

/* ===== Icon Styling ===== */
.icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    fill: var(--text-gray);
    transition: fill 0.3s;
}

.icon:hover {
    fill: var(--secandry-color);
}

/* ===== Social Icon Wrapper ===== */
.social-icons-contact a {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

/* ====================================================== */
/* ==================  Responsive ======================= */
/* ====================================================== */
@media (max-width: 1100px) {
    .row-inputs {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    .site-header {
        padding: 30px;
    }
    .contact-container {
        margin: 80px auto;
    }
    .driven-text {
        font-size: 20px;
    }
    .form-content h1 {
        font-size: 24px;
        line-height: 35px;
    }
    form {
        margin: 0;
    }
    label {
        font-size: 18px;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        padding: 4px 0;
    }
    .message-group {
        margin-bottom: 48px;
    }

    .contact-container {
        padding: 30px 25px;
    }
    .form-content button {
        font-size: 16px;
    }
}
@media (max-width: 780px) {
    .social-icons-contact {
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        min-width: 40px;
        margin-top: 0;
    }
}
@media (max-width: 650px) {
    .form-content h1 br {
        display: none;
    }
    .form-content h1 {
        font-size: 18px;
        line-height: 30px;
    }
    .row-inputs {
        margin-bottom: 32px;
    }
}
@media (max-width: 400px) {
    .driven-text {
        font-size: 18px;
    }
    .form-content h1 {
        font-size: 16px;
        line-height: 26px;
    }
    label {
        font-size: 16px;
    }
    .form-content button {
        font-size: 16px;
        padding: 10px 0;
        width: 100%;
    }
    .site-header {
        padding: 20px;
    }
}
