* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 0% 0%,
            rgba(194, 219, 212, 0.6),
            rgba(239, 253, 234, 0.6));
}

/* Body becomes a vertical flex container */
body.connect-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main takes all remaining space */
main {
    flex: 1;
    display: block;
    /* ensures normal block layout inside */
}

/* ===== CONNECT PAGE ===== */
/* Entire wrapper */
.connect-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 80px;
    padding: 20px;
}

/* Left card */
.social-card {
    background: #8e6a79;
    /* soft purple */
    padding: 40px 30px;
    width: 320px;
    border-radius: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Card title */
.social-card h2 {
    font-family: "Sue Ellen Francisco", sans-serif;
    font-size: 2rem;
    margin-bottom: 35px;
}

/* Container for buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Social buttons */
.social-btn {
    display: block;
    background: white;
    color: #4c3a3a;
    padding: 18px 20px;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    transition: 0.2s ease-in-out;
}

/* Hover effect */
.social-btn:hover {
    background: #f3e4ec;
    transform: translateY(-3px);
}

/* Left column */
.connect-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

/* Purple card */
.social-card {
    background: #8c647b;
    border-radius: 80px;
    padding: 50px 40px;
    width: 500px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.social-card h2 {
    font-family: "Sue Ellen Francisco", sans-serif;
    font-size: 2.1rem;
    color: #ffffff;
    margin: 0 0 20px;
}

/* White pill buttons */
.social-pill {
    display: block;
    width: 100%;
    background: #ffffff;
    color: #4a3c38;
    border-radius: 40px;
    padding: 25px 0;
    text-align: center;
    text-decoration: none;
    font-family: "Teachers", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-pill+.social-pill {
    margin-top: 18px;
}

.social-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.connect-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.connect-right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.connect-title {
    font-family: "Sue Ellen Francisco", sans-serif;
    font-size: 3rem;
    color: #5b4945;
    margin: 0;
    text-align: center;
}

.connect-illustration img {
    width: 260px;
    height: auto;
}

/* Contact Form */

/* Contact Form Section */
.contact-form-section {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-form-section label {
    font-family: "Teachers", sans-serif;
    font-weight: 600;
    color: #5b4945;
    margin-bottom: 5px;
}

.contact-form-section input,
.contact-form-section textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    border-color: #9b59b6;
    outline: none;
}

.contact-form-section button {
    background: #9b59b6;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-section button:hover {
    background: #7d3c98;
}

/* Phone Group */
.phone-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.phone-group select {
    padding: 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 10px 0 0 10px;
    background-color: #f8f8f8;
    font-size: 1rem;
    color: #5b4945;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%235b4945" d="M1.41.59L6 5.17l4.59-4.58L12 2l-6 6-6-6 1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    width: auto;
    min-width: 150px;
}

.phone-group select:focus {
    border-color: #9b59b6;
    background-color: white;
    outline: none;
}

.phone-group select:hover {
    background-color: #f3e4ec;
}

.phone-group input[type="tel"] {
    border-radius: 0 10px 10px 0;
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid #ccc;
    border-left: none;
    flex: 1;
    font-size: 1rem;
    font-family: inherit;
    height: 100%;
}

/* Make wrapper more adaptive inside breakpoints */
@media (max-width: 1200px) {
    .connect-wrapper {
        gap: 64px;
        padding: 18px;
    }

    .social-buttons {
        gap: 22px;
    }

    .social-btn {
        padding: 16px 18px;
        font-size: 1.1rem;
        max-width: 320px;
    }

    .social-card {
        width: 440px;
        padding: 44px 36px;
    }

    .social-pill {
        padding: 22px 0;
        font-size: 0.98rem;
    }

    .connect-title {
        font-size: 2.6rem;
    }

    .connect-illustration img {
        width: 230px;
    }

    .contact-form-section {
        max-width: 460px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .contact-form-section {
        padding: 0 10px;
    }

    .phone-group select {
        min-width: 130px;
    }

    .social-buttons {
        gap: 18px;
    }

    .social-btn {
        padding: 14px 18px;
        font-size: 1.05rem;
        max-width: 340px;
    }

    .social-card {
        width: 380px;
        padding: 38px 30px;
        border-radius: 40px;
    }

    .social-pill {
        padding: 18px 0;
        font-size: 0.98rem;
    }

    .connect-title {
        font-size: 2.2rem;
    }

    .connect-illustration img {
        width: 200px;
    }

    .connect-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 40px;
        margin: 40px auto;
    }

    .contact-form-section {
        max-width: 520px;
        padding: 0 12px;
    }

    .connect-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 40px;
        margin: 40px auto;
    }

    .connect-left {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .phone-group select {
        min-width: 100px;
    }

    .social-buttons {
        gap: 12px;
    }

    .social-btn {
        padding: 12px 14px;
        font-size: 1rem;
        max-width: 100%;
    }

    .social-card {
        width: 320px;
        padding: 28px 22px;
        border-radius: 30px;
    }

    .social-pill {
        padding: 14px 0;
        font-size: 0.95rem;
    }

    .connect-title {
        font-size: 1.8rem;
    }

    .connect-illustration img {
        width: 140px;
    }

    .connect-wrapper {
        margin: 24px auto;
        gap: 20px;
        padding: 0 12px;
    }

    .connect-right-content {
        gap: 20px;
    }

    .contact-form-section {
        max-width: 100%;
        padding: 0 10px;
    }

    .contact-form-section form {
        padding: 20px;
    }

    .phone-group select {
        min-width: 120px;
    }
}