/* --- CONTACT.HTML STYLES --- */

/* 1. HERO */
.contact-hero {
    padding: 120px 0 60px;
    background: #f8fafc;
    text-align: center;
}
.contact-hero h1 { font-size: 3rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.contact-hero p { color: #64748b; font-size: 1.1rem; }

.text-blue { color: #0284c7; }

/* 2. TRIAGE CARDS */
.triage-section {
    margin-top: -30px;
    padding-bottom: 60px;
    background: #f8fafc;
}

.triage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.triage-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.triage-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.triage-card.active {
    border-color: #38bdf8;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.triage-card.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #38bdf8;
}

.icon-box {
    width: 60px; height: 60px;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: 0.2s;
}
.triage-card.active .icon-box { background: #0f172a; color: #fff; }

.triage-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #0f172a; font-weight: 700; }
.triage-card p { font-size: 0.9rem; color: #64748b; line-height: 1.5; }

/* 3. DYNAMIC FORM SECTION */
.form-section {
    padding: 60px 0 100px;
    background: #fff;
    min-height: 600px;
}

.form-wrapper {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.form-wrapper.active-form {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-header { text-align: center; margin-bottom: 40px; }
.form-header h2 { font-size: 2rem; color: #0f172a; font-weight: 800; margin-bottom: 10px; }
.form-header p { color: #64748b; }

/* --- PROFESSIONAL FORM STYLES --- */
.st-form { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
}

.input-group { 
    display: flex;
    flex-direction: column;
    position: relative;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.input-group label {
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #64748b; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease-in-out;
    -webkit-appearance: none;
    appearance: none; 
}

.input-group textarea { 
    height: 140px; 
    resize: none; 
    line-height: 1.5;
}

.input-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a;
}

::placeholder {
    color: #cbd5e1;
    opacity: 1;
}

.btn-submit {
    margin-top: 10px;
    background: #0f172a; 
    color: #fff;
    padding: 16px; 
    font-size: 1rem; 
    font-weight: 700;
    border: none; 
    border-radius: 8px; 
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.btn-submit:hover {
    background: #334155; 
    transform: translateY(-1px);
}

/* --- CUSTOM DROPDOWN STYLES --- */
.custom-select-wrapper select { display: none; }

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.select-selected {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    padding: 14px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-selected:after {
    content: "";
    width: 8px; height: 8px;
    border: 2px solid #64748b;
    border-top: none; border-right: none;
    transform: rotate(-45deg);
    margin-top: -4px;
    transition: 0.2s;
}

.select-selected.select-arrow-active {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a;
}
.select-selected.select-arrow-active:after {
    transform: rotate(135deg);
    margin-top: 4px;
}

.select-items {
    position: absolute;
    background-color: #ffffff;
    top: 105%; 
    left: 0; right: 0;
    z-index: 999;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
}

.select-items div {
    color: #0f172a;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.select-items div:hover, .same-as-selected {
    background-color: #f8fafc; 
    color: #0f172a;
    font-weight: 600;
}

.select-hide { display: none; }
.select-show { display: block; }

/* 4. MAP / HQ SECTION (Light & Horizontal) */
.map-section {
    background: #f8fafc;
    padding: 100px 0;
    border-top: 1px solid #e2e8f0;
}

.map-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.map-header h3 {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.map-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: 0.3s;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #38bdf8;
}

.contact-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.contact-box span {
    display: block;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.map-wide-visual {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #e2e8f0;
}

.map-wide-visual iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.map-wide-visual:hover .map-overlay {
    opacity: 1;
}

.btn-map {
    background: #fff;
    color: #0f172a;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-map:hover {
    background: #38bdf8;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .triage-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .map-wide-visual { height: 300px; }
}

@media (max-width: 600px) {
    .contact-hero { text-align: left; padding: 60px 0 30px; }
}

/* =========================================
   CONTACT PAGE: 3-COLUMN FIXED ROW (No Scroll)
   ========================================= */

@media (max-width: 900px) {

    /* --- 1. HERO SECTION --- */
    .contact-hero {
        padding: 50px 0 30px;
    }
    .contact-hero h1 { font-size: 2rem; }

    /* --- 2. TRIAGE & CONTACT GRIDS (Force 3 Columns) --- */
    .triage-grid, 
    .contact-grid {
        display: flex !important;
        flex-direction: row !important; /* Keep side-by-side */
        flex-wrap: nowrap !important;   /* Do not wrap to next line */
        overflow: visible !important;   /* Disable scrolling */
        gap: 5px; /* Tiny gap to save space */
        padding: 0 5px;
        align-items: stretch; /* Make all boxes same height */
    }

    /* --- 3. TOP CARDS (Hire, Student, General) --- */
    .triage-card {
        flex: 1; /* Force equal width (33%) */
        min-width: 0; /* Allow shrinking */
        width: 33%;
        padding: 15px 5px; /* Compact padding */
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Shrink Icons & Text */
    .icon-box {
        width: 35px; height: 35px; /* Smaller icon circle */
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .triage-card h3 {
        font-size: 0.65rem; /* Tiny Title */
        line-height: 1.2;
        margin-bottom: 8px;
        height: 25px; /* Force consistent height for titles */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .triage-card p {
        font-size: 0.55rem; /* Micro Description */
        line-height: 1.3;
        margin: 0;
    }

    /* --- 4. FORM SECTION --- */
    .form-section { padding: 30px 0; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }

    /* --- 5. BOTTOM CONTACT INFO (Address, Email, Phone) --- */
    .contact-box {
        flex: 1; /* Equal width */
        min-width: 0;
        padding: 20px 5px;
    }

    .contact-box h4 {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .contact-box span {
        font-size: 0.5rem; /* Very small text for addresses */
        line-height: 1.4;
        word-wrap: break-word; /* Prevent long emails from breaking layout */
        overflow-wrap: break-word;
    }

    /* --- 6. MAP --- */
    .map-wide-visual {
        height: 200px;
        margin-top: 20px;
    }
}