:root {
    --primary-blue: #0076e5;
    --dark-blue: #0056b3;
    --bright-red: #ff1e3c;
    --light-grey: #e9ecef;
}

/* Font chữ Roboto chuẩn cho toàn trang */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Viền đỏ trên cùng */
.top-red-line {
    height: 6px;
    background-color: var(--bright-red);
    width: 100%;
}

/* Banner */
.header-banner {
    background: linear-gradient(90deg, #026adb 0%, #0088ff 100%);
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.1);
}

/* Logo không dùng padding - ôm sát vòng tròn */
.logo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: #fff;
    padding: 0 !important; /* Xóa hoàn toàn khoảng đệm */
    border-radius: 50%;
}

.school-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Hotline */
.hotline-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.phone-icon-wrap {
    background-color: #fff;
    color: var(--bright-red);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* -----------------------------------------
   Thanh Menu Ngang (TRIỆT ĐỂ KHÔNG TRƯỢT - CỐ ĐỊNH THEO LUỒNG TRANG)
-------------------------------------------- */
.navbar {
    /* Ép buộc tuyệt đối không sử dụng fixed/sticky hay bám dính dưới mọi hình thức */
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 10;
}

.navbar-nav .nav-link {
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
    background-color: rgba(0,0,0,0.03);
}

/* Menu con cấp 2 tự động đổ xuống mượt mà */
.navbar-nav .dropdown-menu-custom {
    background-color: #ffffff;
    border-radius: 0 0 4px 4px;
    margin-top: 0;
    padding: 0;
}

.navbar-nav .dropdown-menu-custom .dropdown-item {
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    text-transform: none;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-menu-custom .dropdown-item:last-child {
    border-bottom: none;
}

.navbar-nav .dropdown-menu-custom .dropdown-item:hover {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    padding-left: 25px;
}

/* Hover mượt trên Desktop cho Menu cấp 2 (Màn hình lớn >= 1200px) */
@media (min-width: 1200px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu-custom {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    .navbar-nav .dropdown-menu-custom {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}

/* Hỗ trợ hiển thị menu Responsive tối ưu trên Di động/Máy tính bảng (< 1200px) */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }
    
    /* Gỡ đường viền đứng phân cách trên Mobile */
    .navbar-nav .border-end {
        border-right: none !important;
        border-bottom: 1px solid #e9ecef;
    }
    
    /* Điều chỉnh menu cấp 2 lùi lề để dễ phân biệt trên Mobile */
    .navbar-nav .dropdown-menu-custom {
        background-color: #f1f3f5;
        border: none !important;
        box-shadow: none !important;
        padding-left: 15px;
    }
    
    .navbar-nav .dropdown-menu-custom .dropdown-item:hover {
        padding-left: 20px;
        background-color: #e2e6ea;
        color: var(--primary-blue) !important;
    }
}

/* Footer Styling */
.bg-light-grey {
    background-color: #e3e7ed;
}

.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.78rem; }
.fs-9 { font-size: 0.65rem; }

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-btn.facebook { background-color: #3b5998; }
.social-btn.google { background-color: #dd4b39; }
.social-btn.twitter { background-color: #55acee; }
.social-btn.youtube { background-color: #bb0000; }

.footer-body {
    background: linear-gradient(135deg, #0984e3 0%, #00a8ff 100%);
    border-bottom: 5px solid var(--bright-red);
}

.footer-body::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/decorBack.png') no-repeat bottom center;
    background-size: cover;
    /* opacity: 0.08; */
    z-index: 0;
}

.contact-info li i {
    font-size: 1.1rem;
    width: 20px;
}

.info-links a {
    transition: padding-left 0.2s;
}

.info-links a:hover {
    padding-left: 5px;
    color: #ffd200 !important;
}

.fb-widget-mock {
    border-left: 4px solid #3b5998;
}

.copyright-bar {
    background-color: var(--bright-red);
    font-size: 0.85rem;
}

/* Bong bóng Messenger */
.messenger-bubble {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #a2001d;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    z-index: 9999;
    transition: transform 0.2s;
    text-decoration: none;
}

.messenger-bubble:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .school-name {
        font-size: 1.3rem;
        text-align: center;
    }
    .header-right {
        justify-content: center !important;
        width: 100%;
        margin-top: 5px;
    }
}
/* --------------------------------------------------------------
   CSS Gắn Cố Định Toàn Bộ Vùng Đỉnh Trang (Không bị trượt/cuộn)
----------------------------------------------------------------- */
.fixed-header-wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Đảm bảo luôn nằm trên các nội dung khác */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 
   Khối đệm bù đắp chiều cao:
   Chiều cao của Header Banner (~112px) + Viền đỏ (6px) + Menu (~58px) = 176px.
   Điều này giữ cho phần nội dung trang bắt đầu ngay sát dưới Menu.
*/
.header-spacing-buffer {
    height: 176px; 
    width: 100%;
    display: block;
}
/* Đảm bảo menu con dropdown khi hover hiển thị mượt mà trên header fixed */
.navbar-nav .dropdown-menu-custom {
    z-index: 1040;
}

/* Responsive: Điều chỉnh khoảng đệm buffer khi màn hình co nhỏ */
@media (max-width: 992px) {
    .header-spacing-buffer {
        height: 220px; /* Tăng khoảng đệm khi Logo và Hotline xếp chồng hàng dọc trên Mobile */
    }
}

/* NỘP HỒ SƠ TUYỂN SINH */
:root {
    --theme-teal: #0d9488;
    --theme-teal-light: #f0fdfa;
}

.brand-color-text {
    color: #111827;
}

.text-primary-theme {
    color: var(--theme-teal);
}

/* --- Stepper CSS --- */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.stepper-progress {
    position: absolute;
    top: 25px;
    left: 4%;
    width: 92%;
    height: 4px;
    background-color: #e2e8f0;
    z-index: -1;
    transition: all 0.4s ease;
}

.stepper-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* Sẽ tăng động qua JS */
    background-color: var(--theme-teal);
    transition: all 0.4s ease;
}

.step-item {
    text-align: center;
    width: 80px;
    cursor: pointer;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

/* Các trạng thái Stepper hoạt động */
.step-item.active .step-icon {
    border-color: var(--theme-teal);
    background-color: var(--theme-teal-light);
    color: var(--theme-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.step-item.active .step-label {
    color: var(--theme-teal);
    font-weight: 700;
}

.step-item.completed .step-icon {
    border-color: var(--theme-teal);
    background-color: var(--theme-teal);
    color: #ffffff;
}

/* --- Form Steps Layout --- */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Selector Cấp bậc đào tạo --- */
.level-card-selector {
    border: 2px solid var(--theme-teal);
    background-color: var(--theme-teal-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checked-circle {
    color: var(--theme-teal);
    font-size: 1.4rem;
}

/* --- Khu vực tải ảnh học bạ --- */
.upload-drag-area {
    border-color: #cbd5e1 !important;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-drag-area:hover, .upload-drag-area.dragover {
    border-color: var(--theme-teal) !important;
    background-color: var(--theme-teal-light);
}

.fs-8 { font-size: 0.75rem; }

:root {
    --theme-teal: #0d9488;
    --theme-teal-light: #f0fdfa;
}

/* Kiểu dáng cho vùng kéo thả tải file */
.upload-drag-area {
    border-color: #cbd5e1 !important;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}
.upload-drag-area:hover, .upload-drag-area.dragover {
    border-color: var(--theme-teal) !important;
    background-color: var(--theme-teal-light);
}

.fs-7 { font-size: 0.85rem; }

/* Tùy chỉnh hiển thị màu viền các ô lỗi chuẩn của Bootstrap */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545 !important;
}
.form-control.is-valid, .form-select.is-valid {
    border-color: #198754 !important;
}


.custom-location-dropdown .dropdown-item-custom {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}
.custom-location-dropdown .dropdown-item-custom:hover {
    background-color: #f1f3f5;
}
.custom-location-dropdown .dropdown-item-custom.active-item {
    background-color: #e3fafc;
    color: #0c8599;
    font-weight: 500;
}
