/* Update the top of home.css */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box; /* This is the critical fix */
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Forces the browser to cut off any side overflow */
    position: relative;
}

/* =========================================
   GLOBAL SMOOTHNESS
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased; /* Crisper text on Mac/Chrome */
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   SPLIT SECTION STYLES
   ========================================= */

/* Main Container */
.split-section {
    display: flex;
    width: 100%;
    
    /* FIX: Change height from '100vh - 120px' to a fixed square-ish aspect ratio */
    height: 60vh; 
    min-height: 500px; /* Ensures it doesn't get too small */
    max-height: 800px; /* Prevents it from being too tall on long phones */
    
    position: relative;
    background-color: #000;
    overflow: hidden;
}

/* === CARD WRAPPER === */
.split-card {
    flex: 1; /* Takes 50% width */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.1); 
    /* Optimized transition */
    transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === BACKGROUND IMAGE === */
.split-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform; /* Hint to browser for smoothness */
}

/* Zoom Effect on Hover */
.split-card:hover .split-img {
    transform: scale(1.15);
}

/* === GRADIENT OVERLAY === */
.split-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.4));
    z-index: 2;
    transition: background 0.3s ease;
}

.split-card:hover .split-overlay {
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.5));
}

/* === CONTENT === */
.split-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 500px;
    color: #fff;
    transform: translateY(20px); 
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

/* Slide Up Content on Hover */
.split-card:hover .split-content {
    transform: translateY(0);
}

/* Icon */
.icon-box {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Headings */

.split-content h2 {
    font-size: clamp(1.5rem, 3.5vw, 3rem); 
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap; 
}

/* Highlight Colors */
.highlight-in { color: #FF9933; /* Saffron */ }
.highlight-out { color: #4dabf7; /* Sky Blue */ }

.split-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* === BUTTON === */
.btn-split {
    display: inline-block;
    padding: 14px 40px;
    background-color: #d32f2f;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #d32f2f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-split:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-split i {
    margin-left: 8px;
    transition: margin-left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-split:hover i {
    margin-left: 15px; /* Arrow moves right */
}

/* =========================================
   RESPONSIVE (MOBILE) - SPLIT SECTION
   ========================================= */
@media (max-width: 900px) {
    .split-section {
        flex-direction: column;
        height: auto;
    }

    .split-card {
        width: 100%;
        height: 450px; 
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .split-content h2 {
        font-size: 2.2rem;
    }
    
    .split-content {
        transform: translateY(0); 
    }
}

/* =========================================
   CORPORATE SECTION + SCROLLING
   ========================================= */

.pro-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.pro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* === LEFT COLUMN (65%) === */
.pro-main-col {
    flex: 0 0 65%;
    max-width: 65%;
}

.section-header {
    margin-bottom: 30px;
    border-left: 5px solid #d32f2f;
    padding-left: 20px;
}

.pro-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.pro-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Horizontal Cards */
.pro-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pro-card-img {
    flex: 0 0 35%;
    position: relative;
}

.pro-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.pro-card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.badge-domestic, .badge-intl {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-domestic { background: #fff3e0; color: #f57c00; border: 1px solid #ffe0b2; }
.badge-intl { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }

.card-desc {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-pro {
    align-self: flex-start;
    padding: 10px 24px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-pro:hover { background-color: #d32f2f; }

/* === RIGHT COLUMN (35%): SCROLLING NOTICES === */
.pro-side-col {
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: -webkit-sticky;
    position: sticky;
    top: 170px; 
    align-self: flex-start; 
    height: fit-content;
    z-index: 5; 
}

.notice-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden; 
}

.notice-header-pro {
    background: #f1f1f1;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20; 
}

.notice-header-pro h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-indicator {
    font-size: 0.7rem;
    font-weight: 700;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

.blink-dot {
    width: 8px; height: 8px;
    background: #d32f2f;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* === SCROLLING ANIMATION CSS === */
.notice-scroll-window {
    height: 350px; 
    overflow: hidden;
    position: relative;
    background: #fff;
}

.scrolling-content {
    animation: scrollVertical 30s linear infinite;
}

.notice-scroll-window:hover .scrolling-content {
    animation-play-state: paused;
}

@keyframes scrollVertical {
    /* CHANGE THIS LINE: was translateY(100%) */
    0% { transform: translateY(280px); } 
    
    /* Keep this line as is */
    100% { transform: translateY(-100%); } 
}

/* Notice Items */
.notice-item-pro {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    transition: background-color 0.2s;

    position: relative;  /* Makes this the container for the click area */
    cursor: pointer;     /* Shows the hand icon when hovering anywhere on the row */
}

.notice-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.notice-item-pro:hover { background: #fafafa; }

.notice-date {
    font-size: 0.75rem;
    color: #d32f2f;
    font-weight: 700;
    text-transform: uppercase;
}

.notice-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.2s;
}

.notice-link:hover { color: #d32f2f; }

.new-tag {
    align-self: flex-start;
    font-size: 0.65rem;
    background: #d32f2f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 600;
}

.notice-footer-pro {
    background: #f8f8f8;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    z-index: 10;
    position: relative;
}

.notice-footer-pro a {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

/* Contact Box */
.contact-box-pro {
    background: #333;
    color: #fff;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
}

.contact-box-pro h4 { margin: 0 0 10px 0; font-size: 1.2rem; }
.contact-box-pro p { color: #ccc; font-size: 0.9rem; margin-bottom: 20px; }

.phone-link {
    display: inline-block;
    color: #fff;
    background: #d32f2f;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.phone-link:hover { background: #b71c1c; }

/* === RESPONSIVE (PRO SECTION) === */
@media (max-width: 900px) {
    .pro-container { flex-direction: column; }
    .pro-main-col, .pro-side-col { flex: 0 0 100%; max-width: 100%; }
    .pro-card { flex-direction: column; }
    .pro-card-img { height: 200px; }
    .card-top { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =========================================
   NEW DATA DASHBOARD LAYOUT (Info Panel)
   ========================================= */

.img-badge-corner {
    position: absolute; top: 15px; left: 15px;
    background: #d32f2f; color: #fff;
    padding: 6px 12px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.img-badge-corner.blue { background: #1976d2; }

/* === THE INFO PANEL CONTAINER === */
.data-panel {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.data-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.icon-circle.warm { background: #fff3e0; color: #e65100; }
.icon-circle.cool { background: #e3f2fd; color: #1565c0; }

.data-text {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.d-label { font-size: 0.65rem; text-transform: uppercase; color: #888; font-weight: 600; }
.d-value { font-size: 0.85rem; font-weight: 700; color: #333; }

.panel-divider {
    height: 1px; background: #e0e0e0;
    margin-bottom: 12px;
}

.data-tags-row {
    display: flex; align-items: center; gap: 10px;
}

.tag-label {
    font-size: 0.75rem; font-weight: 700; color: #555;
    text-transform: uppercase;
}

.tag-list {
    display: flex; flex-wrap: wrap; gap: 6px;
}

.tag-list span {
    font-size: 0.75rem;
    background: #fff;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .data-grid {
        grid-template-columns: 1fr; 
        gap: 10px;
    }
}

/* =========================================
   OUR SERVICES - SMOOTH & FLICKER FREE
   ========================================= */

.services-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 30px;
}

/* === CLEAN CARD DESIGN (FIXED FOR SMOOTHNESS) === */
.service-card-clean {
    background: #fff;
    border: 1px solid #e0e0e0; 
    padding: 30px 25px;
    border-radius: 4px; 
    /* The Fix: Transition transform, box-shadow and border-color separately */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
    position: relative;
    /* Important for performance: */
    transform: translateZ(0); 
    backface-visibility: hidden; 
    text-align: left; 
}

/* Hover: Smooth lift and Red Accent Line via Shadow (Not Border Width) */
.service-card-clean:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), inset 0 4px 0 0 #d32f2f;
    border-color: #d32f2f; 
}

/* Icon Styling */
.clean-icon {
    font-size: 2rem;
    color: #d32f2f;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.service-card-clean:hover .clean-icon {
    transform: scale(1.1);
}

/* Typography */
.service-card-clean h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.service-card-clean p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* === RESPONSIVE LAYOUT === */

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }

    .service-card-clean {
        padding: 15px 10px; 
        text-align: center; 
    }

    .clean-icon {
        font-size: 1.5rem; 
        margin-bottom: 10px;
    }

    .service-card-clean h3 {
        font-size: 0.85rem; 
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .service-card-clean p {
        font-size: 0.7rem; 
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 4; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* =========================================
   ADMISSION ROADMAP - TIMELINE DESIGN
   ========================================= */

.roadmap-section {
    margin-top: 60px;
    padding: 50px 0;
    position: relative;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
    padding: 0 20px;
}

/* The Connecting Line (Desktop) */
.step-line {
    position: absolute;
    top: 35px; 
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

/* Individual Step */
.step-item {
    position: relative;
    z-index: 1; 
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

/* Circle with Icon */
.step-circle {
    width: 70px; height: 70px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #888;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

/* Tiny Number Badge */
.step-num {
    position: absolute;
    top: -5px; right: -5px;
    width: 24px; height: 24px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    transition: background 0.3s ease;
}

/* Typography */
.step-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* === HOVER EFFECTS === */
.step-item:hover .step-circle {
    border-color: #d32f2f;
    background: #d32f2f;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

.step-item:hover .step-num {
    background: #fff;
    color: #d32f2f;
}

/* === CTA BUTTON === */
.roadmap-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-start {
    display: inline-block;
    padding: 12px 35px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-start:hover {
    background: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* =========================================
   RESPONSIVE (MOBILE VERTICAL TIMELINE)
   ========================================= */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 30px;
        padding-left: 30px; 
    }

    .step-line {
        top: 0; bottom: 0;
        left: 64px; 
        right: auto;
        width: 3px;
        height: 100%;
    }

    .step-item {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .step-circle {
        margin: 0; 
        flex-shrink: 0;
    }

    .step-item p {
        font-size: 0.8rem;
    }
}

/* =========================================
   DARK PARALLAX STATS SECTION
   ========================================= */

.parallax-stats-section {
    position: relative;
    margin-top: 0;
    padding: 100px 20px;
    background-image: url('/home/images/Parallax-Overlay.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    color: #fff;
    text-align: center;
}

.parallax-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(23, 42, 69, 0.9));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2; 
    max-width: 1300px;
    margin: 0 auto;
}

/* === HEADER === */
.parallax-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.header-divider {
    width: 80px;
    height: 4px;
    background-color: #fbbf24; 
    margin: 0 auto 50px auto;
    border-radius: 2px;
}

/* === GRID LAYOUT === */
.parallax-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

/* === ITEM DESIGN === */
.p-stat-item {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.p-stat-item:hover {
    transform: translateY(-10px); 
}

/* Icon */
.p-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3); 
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.p-stat-item:hover .p-icon {
    color: #fbbf24; 
}

/* Number */
.p-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fbbf24; 
    margin: 0 0 5px 0;
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
}

/* Label */
.p-label {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e2e8f0; 
    margin: 0;
}

/* =========================================
   MOBILE RESPONSIVENESS (STATS)
   ========================================= */
@media (max-width: 1000px) {
    .parallax-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .parallax-stats-section {
        padding: 60px 15px;
    }

    .parallax-header h2 {
        font-size: 1.8rem;
    }

    .header-divider {
        margin-bottom: 30px;
    }

    .parallax-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 15px; 
    }

    .p-number {
        font-size: 2rem; 
    }

    .p-label {
        font-size: 0.8rem;
    }

    .p-icon {
        font-size: 1.5rem;
    }
}

/* =========================================
   FRAMELESS MATERIAL FORM DESIGN
   ========================================= */

.consult-section {
    position: relative;
    z-index: 10;
    padding: 100px 20px;
    background-color: #f1f3f6; 
    background-image: radial-gradient(#d32f2f 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

.consult-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* === LEFT CONTENT === */
.consult-content {
    flex: 1;
    max-width: 500px;
}

.trust-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e3f2fd; color: #1565c0;
    padding: 6px 12px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 20px;
}

.consult-title {
    font-size: 2.8rem; font-weight: 800; line-height: 1.1;
    color: #1a1a1a; margin-bottom: 20px;
}

.consult-desc {
    font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 40px;
}

/* Stats Row */
.stat-row {
    display: flex; gap: 30px; margin-bottom: 40px;
    padding-bottom: 30px; border-bottom: 1px solid #ddd;
}
.stat-mini { display: flex; flex-direction: column; }
.s-val { font-size: 1.4rem; font-weight: 800; color: #d32f2f; }
.s-lbl { font-size: 0.75rem; text-transform: uppercase; color: #777; font-weight: 600; }

/* Animated Arrow */
.arrow-indicator {
    display: flex; align-items: center; gap: 10px;
    color: #333; font-weight: 600; font-size: 1.1rem;
}
.arrow-indicator i { animation: bounceRight 1.5s infinite; }

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* === RIGHT FORM CARD === */
.consult-form-card {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    max-width: 500px;
}

.card-header h3 {
    margin: 0 0 30px 0; font-size: 1.4rem;
    color: #222; text-align: center; font-weight: 700;
}

.material-form { display: flex; flex-direction: column; gap: 25px; }
.form-row-split { display: flex; gap: 20px; }

/* === MATERIAL INPUT STYLES === */
.mat-input-group { position: relative; width: 100%; }

.mat-input-group input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    transition: all 0.3s;
    height: 40px;
    border-radius: 0;
}

/* === UPDATED: Select Dropdown specific styling === */
.mat-input-group select {
    width: 100%;
    padding: 10px 10px 10px 35px;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    transition: all 0.3s;
    height: 40px;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Floating Label Logic */
.mat-input-group label {
    position: absolute;
    left: 35px;
    top: 10px;
    font-size: 0.95rem;
    color: #999;
    transition: 0.3s ease all;
    pointer-events: none;
}

.input-icon {
    position: absolute; left: 0; top: 10px;
    font-size: 1.2rem; color: #aaa; transition: 0.3s;
    pointer-events: none;
}

/* === THE ANIMATION FIX === */

/* 1. Floating Label Position (Moves up when focused OR filled) */
.mat-input-group input:focus ~ label,
.mat-input-group input:not(:placeholder-shown) ~ label,
.mat-input-group select:focus ~ label,
.mat-input-group select:valid ~ label,
.mat-input-group textarea:focus ~ label,
.mat-input-group textarea:not(:placeholder-shown) ~ label {
    top: -15px;
    left: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 2. Colors ONLY turn RED when actively clicking/focusing */
.mat-input-group input:focus ~ label,
.mat-input-group select:focus ~ label,
.mat-input-group textarea:focus ~ label {
    color: #d32f2f;
}

.mat-input-group input:focus ~ .input-icon,
.mat-input-group select:focus ~ .input-icon,
.mat-input-group textarea:focus ~ .input-icon {
    color: #d32f2f;
}

/* 3. Red Bar Animation at the bottom */
.bar { position: relative; display: block; width: 100%; }
.bar:before, .bar:after {
    content: ''; height: 2px; width: 0; bottom: 0; position: absolute;
    background: #d32f2f; transition: 0.3s ease all;
}
.bar:before { left: 50%; }
.bar:after { right: 50%; }

.mat-input-group input:focus ~ .bar:before, 
.mat-input-group input:focus ~ .bar:after,
.mat-input-group select:focus ~ .bar:before, 
.mat-input-group select:focus ~ .bar:after,
.mat-input-group textarea:focus ~ .bar:before,
.mat-input-group textarea:focus ~ .bar:after {
    width: 50%;
}

/* Submit Button */
.btn-material {
    margin-top: 10px;
    background: #222;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-material:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 900px) {
    .consult-wrapper {
        flex-direction: column; text-align: center; gap: 40px;
    }
    .consult-content { max-width: 100%; }
    .stat-row { justify-content: center; }
    .arrow-indicator { justify-content: center; transform: rotate(90deg); margin-top: 20px; }
    .arrow-indicator span { display: none; }
    .consult-form-card { width: 100%; max-width: 100%; padding: 30px 20px; }
    .form-row-split { flex-direction: column; gap: 25px; }
}



/* =========================================
   FIX: TICKER OVERLAP ADJUSTMENTS
   ========================================= */
/* 1. Fix Hero Section Height when Ticker is active 
   The body gets class 'has-ticker' from header.js. 
   We reduce the hero height so it fits perfectly without being pushed down. */
body.has-ticker .split-section {
    /* Original was 100vh - 120px. 
       Ticker adds 35px, so we subtract 155px total. */
    height: calc(100vh - 155px); 
}
/* 3. Mobile Adjustment (Optional but recommended)
   On mobile, the header calculation changes. */
@media (max-width: 900px) {
    body.has-ticker .split-section {
        height: auto; 
        /* UPDATED: Set padding to 0 to remove the black line */
        padding-top: 0;
        margin-top: 0;
    }
}

/* Textarea Material Styling */
.mat-input-group textarea {
    width: 100%;
    padding: 10px 10px 10px 40px;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    resize: none; 
    font-family: inherit;
}
