/* ===============================
   CONTACT SECTION
================================ */

.contact-section {
    flex: 1; /* fills remaining height */
    background: #f4f7fb;
    display: flex;
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
    padding: 0 45px;          /* horizontal only */
}

/* Boxed layout */
.contact-section .section-content.boxed {
    max-width: 1100px;
    width: 100%;
    padding: 40px;
}

/* Header */
.section-header {
    max-width: 750px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: "";
    width: 55px;
    height: 4px;
    background: var(--secondary-color);
    display: block;
    margin-top: 14px;
    border-radius: 3px;
}

.section-description {
    margin-top: 18px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
}

/* ===============================
   GRID
================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

/* ===============================
   CONTACT INFO
================================ */

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.contact-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    color: #555;
}

.contact-note {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #777;
}

/* ===============================
   FORM
================================ */

.contact-form {
    background: #f9fbff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 99, 207, 0.15);
}

/* Button */
.btn-primary {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(10, 99, 207, 0.35);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .contact-section {
        align-items: flex-start;  /* 🔑 allow natural flow */
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .contact-section .section-content.boxed {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 28px 22px;
    }
}
