@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bds-primary:      #2563eb;       
    --bds-primary-dark: #1d4ed8;
    --bds-secondary:    #e85a24;       
    
    --bds-text:         #1e293b;       
    --bds-text-light:   #64748b;       
    
    --bds-border:       #e2e8f0;       
    --bds-bg-light:     #f8fafc;       
    
    
    --bds-card-shadow:  0 1px 3px rgba(0,0,0,0.04);
    --bds-card-shadow-hover: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    
    
    --bds-card-radius:  8px;
    --bds-font:         'Inter', sans-serif;
    --bds-max-width:    1400px;
    --bds-transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bds-consult-container {
    max-width: var(--bds-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.form-group label span {
    color: #e31e24;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fcfcfc;
    transition: var(--bds-transition);
    line-height: 1.5;
    height: auto;
    min-height: 48px;
}

.form-group select {
    cursor: pointer;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e31e24;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

body, 
input, 
button, 
select, 
textarea,
h1, h2, h3, h4, h5, h6,
span, p, a, div {
    font-family: 'Inter', sans-serif !important;
    color: var(--bds-text);
}

/* === SHARED DESIGN SYSTEM === */

/* Breadcrumb */
.bds-breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
}

.bds-breadcrumb a {
    color: #333;
    text-decoration: none;
}

.bds-breadcrumb a:hover {
    color: var(--bds-primary);
}

/* Titles */
.bds-title-wrap {
    margin-bottom: 30px;
}

.bds-title-wrap .sub {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    display: block;
    text-transform: uppercase;
}

.bds-main-red {
    font-size: 72px;
    font-weight: 800;
    color: #e31e24 !important;
    line-height: .9;
    display: block;
    margin: 5px 0;
}

.bds-title-wrap .helper {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: block;
}

/* Cards */
.bds-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
}

.bds-form-card .form-header {
    margin-bottom: 25px;
}

.bds-form-card .form-header span {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    display: block;
    letter-spacing: 1px;
}

.bds-form-card .form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 5px 0 15px;
}

/* Privacy Note */
.bds-privacy-note {
    display: flex;
    gap: 12px;
    background: #fdf2f0;
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

.bds-privacy-note i {
    color: #e31e24;
    font-size: 22px;
}

/* Buttons */
.bds-btn-primary {
    width: 100%;
    background: #e31e24;
    color: #fff !important;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--bds-transition);
}

.bds-btn-primary:hover {
    background: #c1191e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.25);
}

.bds-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Grids */
.bds-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Responsive Shared */
@media (max-width: 1024px) {
    .bds-main-red {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .bds-main-red {
        font-size: 48px;
    }
    .bds-grid-2 {
        grid-template-columns: 1fr;
    }
}

.fas, .far, .fab {
    color: var(--bds-primary);
}

@keyframes bds-ring {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(20deg); }
    20%  { transform: rotate(-18deg); }
    30%  { transform: rotate(16deg); }
    40%  { transform: rotate(-14deg); }
    50%  { transform: rotate(10deg); }
    60%  { transform: rotate(-6deg); }
    70%  { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

@keyframes bds-shine {
    0%   { left: -100%; opacity: 0; }
    20%  { opacity: .5; }
    100% { left: 150%; opacity: 0; }
}

.animate-call:hover .fas.fa-phone {
    animation: bds-ring 0.8s ease;
}

.bds-custom-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bds-header-inner {
    display: flex;
    align-items: center;
    max-width: var(--bds-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    gap: 40px;
}

.bds-header-logo {
    flex-shrink: 0;
}
.bds-header-logo img {
    height: 50px;
    width: auto;
    display: block;
}
.bds-header-logo .bds-logo-text {
    color: #e85a24;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.bds-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.bds-nav-link {
    color: #e85a24;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.bds-nav-link:hover,
.bds-nav-link:focus {
    background-color: rgba(0,0,0,0.15);
    color: #e85a24;
}

@media (max-width: 768px) {
    .bds-header-inner {
        padding: 0 16px;
        height: 52px;
        gap: 16px;
    }
    .bds-header-nav {
        gap: 2px;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    .bds-header-nav::-webkit-scrollbar {
        display: none;
    }
    .bds-nav-link {
        font-size: 0.75rem;
        padding: 6px 12px;
        flex-shrink: 0;
    }
    .bds-header-logo img {
        height: 40px;
    }
}

/* ===== HEADER ACTIONS ===== */
.bds-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bds-header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--bds-transition);
    line-height: 1.2;
}

.bds-header-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.bds-header-btn .label {
    font-size: 11px;
    display: block;
}

.bds-header-btn .main {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.btn-consult {
    color: #113651;
    border: 1px solid #e85a24;
    background: #fff;
}

.btn-consult:hover {
    background: #fdf2f0;
    box-shadow: 0 2px 4px rgba(232, 90, 36, 0.1);
}

.btn-consign {
    background: #e85a24;
    color: #fff;
    border: 1px solid #e85a24;
}

.btn-consign:hover {
    background: #d64d1f;
    box-shadow: 0 4px 8px rgba(232, 90, 36, 0.2);
}

.desktop-only {
    display: flex;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

.mobile-nav-actions {
    padding: 16px;
    flex-direction: column;
    width: 100%;
}

.mobile-nav-actions .bds-header-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* ===== HAMBURGER BUTTON ===== */
.bds-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.bds-hamburger span {
    display: block;
    height: 2px;
    background: #e85a24;
    border-radius: 2px;
    transition: var(--bds-transition);
    transform-origin: center;
}

/* Animate hamburger → X */
.bds-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.bds-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.bds-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE NAV DROPDOWN ===== */
.bds-mobile-nav {
    display: none;
    flex-direction: column;
    background-color: #DCDCDC; /* tối hơn header một chút */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bds-mobile-nav.open {
    max-height: 500px; /* đủ lớn cho nhiều items */
}

.bds-mobile-nav .bds-nav-link {
    display: block;
    padding: 13px 20px;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, border-left-color 0.2s;
}

.bds-mobile-nav .bds-nav-link:hover,
.bds-mobile-nav .bds-nav-link:focus {
    background-color: rgba(0, 0, 0, 0.12);
    border-left-color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
    /* Tablet: thu nhỏ padding và gap */
    .bds-header-inner {
        gap: 20px;
    }
    .bds-nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .bds-header-inner {
        padding: 0 16px;
        height: 52px;
        gap: 0;
    }

    /* Ẩn nav ngang, hiện hamburger */
    .bds-header-nav {
        display: none;
    }
    .bds-hamburger {
        display: flex;
    }
    .bds-mobile-nav {
        display: flex;
    }

    .bds-header-logo img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .bds-header-inner {
        padding: 0 12px;
        height: 48px;
    }
    .bds-header-logo img {
        height: 28px;
    }
    .bds-logo-text {
        font-size: 1.1rem;
    }
}