/* ─── RESET & BASE ───────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
}



/* ─── MAIN ───────────────────────────────────────────────────── */
main {
    flex: 1;
    padding: 0 1rem;
}

.main-container {
    max-width: auto;
    margin: 10px auto 0 auto;
    
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ─── TEAM GRID ──────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    opacity: 1;
    overflow: hidden;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-photo {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 4px solid #e5e7eb;
}
input::-webkit-contacts-auto-fill-button {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #000;
}

.team-role {
    font-size: 1rem;
    color: #6b7280;
}

/* ─── CONTACT FORM ───────────────────────────────────────────── */
.form-container {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(120px);
    will-change: transform, opacity;
    overflow: hidden;
    backface-visibility: hidden;
   
}
.form-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #290611;
    margin-bottom: 3rem;
    text-align: center;

}
.form-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 4px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.iti__selected-country {
    font-size: 1.25rem;
    font-weight: 600;
    color: #290611;
}
.form-group.textarea-group { align-items: flex-start; }

label {
    font-size: 1.25rem;
    white-space: nowrap;
    min-width: 100px;
}
.iti {
    flex: 1;
    width: 100%;
}

.iti__tel-input {
    width: 100% !important;
    box-sizing: border-box;
}
.textarea-group label { padding-top: 0.5rem; }

input, textarea {
    flex: 1;
    /* min-height: 3rem; */
    padding: 0.75rem 1rem;
    background-color: #d1d5db;
    border: none;
    border-radius: 0.25rem;
    font-size:1.25rem;
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.2s;
}

input:focus, textarea:focus { box-shadow: 0 0 0 2px #9ca3af; }
textarea { resize: none; }

.submit-container {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    padding-left: 6rem;
}

button {
    padding: 0.75rem 3rem;
    background-color: #290611;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: inherit;
}

button:hover { opacity: 0.9; }


.map-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #290611;
    font-weight: 700;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
    background-color: #ADD786;
    padding: 3rem 1rem;
    margin-top: auto;
   
    will-change: transform, opacity;
    overflow: hidden;
    backface-visibility: hidden;
}

.footer-container { max-width: 1280px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: #290611;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: #fff;
    fill: none;
}

.footer-text {
    font-size: 1.125rem;
    color: #290611;
}
.field-error {
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 5px;
}

/* ─── RESPONSIVE: 640px ──────────────────────────────────────── */
@media (min-width: 640px) {
    header  { padding: 1rem 1.5rem; }
    h1      { font-size: 2rem; }
    main    { padding: 3rem 1.5rem; }

    .social-icon {
        opacity: 0;
        transform: translateX(-60px);
    }

    .team-grid    { gap: 2.5rem; }
    .footer-grid  { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ─── RESPONSIVE: 1024px ─────────────────────────────────────── */
@media (min-width: 1024px) {
    header, main, footer { padding-left: 4rem; padding-right: 4rem; }
    h1                   { font-size: 2.25rem; }
    .content-grid        { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .team-grid           { gap: 3rem; }
}
.phone-wrapper {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

#country_code {
    width: 120px; /* Adjust as needed */
    flex: 0 0 120px;
    min-width: 0;

}

#phone {
    flex: 1;
    min-width: 0;
}    
@media (max-width: 768px) {
    .submit-container {
        padding-left: 0;
        justify-content: center;
    }

    .submit-container button {
        width: 40%;
        max-width: 280px;
    }
}
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    label {
        min-width: auto;
    }

    input,
    textarea,
    .iti,
    .phone-wrapper {
        width: 100%;
        flex: none;
    }

    textarea {
        min-height: 150px;
    }
}

/* ─── RESPONSIVE: 480px (design floor is 320px, no smaller) ──── */
@media (max-width: 480px) {
    main { padding: 0 0.75rem; }

    .team-photo {
        width: 7.5rem;
        height: 7.5rem;
    }

    .submit-container button {
        width: 100%;
        max-width: none;
    }
}