/* ==========================================================================
   ĐỒNG NAI FORD - SUBPAGE COMPREHENSIVE STYLESHEET (subpages.css)
   Covers: Articles, Products, Services, PriceList, Budget, RegisterToDrive, Contact
   ========================================================================== */

/* Keep Header & Footer container width consistent with Bootstrap 5 */
#header .container,
#footer .container {
    max-width: 1320px !important;
}

/* Protect Bootstrap 5 / Đồng Nai Ford Popup Modal (#popupBaoGia, #modalBookingService) from subpage CSS overrides */
.popup-theme .modal-dialog .modal-content {
    max-width: 100% !important;
    padding: 0 !important;
    transform: none !important;
}

/* Override Blog Hero & Service Hero Banner with Ford Imagery & Navy Theme */
.blog-hero,
.service-hero-banner,
.page-banner {
    background: linear-gradient(135deg, #000b33 0%, #001c58 55%, #003478 100%) !important;
    padding: 145px 0 60px 0 !important;
    color: #ffffff !important;
    position: relative;
}

.blog-hero-title,
.detail-hero-title,
.banner-title,
.service-hero-title {
    color: #ffffff !important;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.blog-hero-breadcrumb,
.page-banner .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0 0 !important;
    color: #cbd5e1 !important;
    font-size: 0.92rem !important;
}

.blog-hero-breadcrumb a,
.page-banner .breadcrumb a {
    color: #e2e8f0 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-hero-breadcrumb a:hover,
.page-banner .breadcrumb a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.blog-hero-breadcrumb span,
.page-banner .breadcrumb .current {
    color: #ffffff !important;
    font-weight: 600;
}

.page-banner .breadcrumb i {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Article Detail Enhancements */
.article-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px !important;
    box-shadow: 0 4px 20px rgba(0, 20, 80, 0.04);
}

.article-meta-cat {
    display: inline-block;
    background: rgba(0, 52, 120, 0.1);
    color: #003478;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article-detail-title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: #001450;
    line-height: 1.35;
    margin-bottom: 16px;
}

.article-detail-img-wrap {
    margin: 20px 0 26px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef2f6;
}

.article-detail-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #334155;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px auto;
}

/* Sidebar Consult Widget Ford Blue Overrides */
.consult-hotline {
    color: #003478 !important;
}

.consult-btn {
    background: #003478 !important;
    box-shadow: 0 4px 12px rgba(0, 52, 120, 0.25) !important;
}

.consult-btn:hover {
    background: #001450 !important;
}

/* ==========================================================================
   CONTACT PAGE STYLES (Contact.cshtml)
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info-box,
.contact-form-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 28px rgba(0, 20, 80, 0.05);
}

.contact-info-box h2,
.contact-form-wrapper h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #001450;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.contact-desc,
.contact-form-wrapper > p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(0, 52, 120, 0.08);
    color: #003478;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.info-text p {
    margin: 0;
    font-size: 0.94rem;
    color: #475569;
}

.social-connect {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.social-connect h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #003478;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: #001450;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.map-container {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.map-container iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* ==========================================================================
   PRICE LIST PAGE STYLES (PriceList.cshtml)
   ========================================================================== */
.price-intro-text {
    background: #f8fafc;
    border-left: 4px solid #003478;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #334155;
}

.price-section-block {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 18px rgba(0, 20, 80, 0.04);
    align-items: center;
}

@media (max-width: 992px) {
    .price-section-block {
        grid-template-columns: 1fr;
    }
}

.price-car-col {
    text-align: center;
    padding: 12px;
}

.price-car-img {
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 14px auto;
}

.price-car-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #001450;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.price-car-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action-outline,
.btn-action-fill {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-outline {
    border: 1.5px solid #003478;
    color: #003478;
    background: transparent;
}

.btn-action-outline:hover {
    background: #003478;
    color: #ffffff;
}

.btn-action-fill {
    border: 1.5px solid #003478;
    background: #003478;
    color: #ffffff;
}

.btn-action-fill:hover {
    background: #001450;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    background: #001450;
    color: #ffffff;
    padding: 13px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    vertical-align: middle;
}

.price-table .price-value {
    color: #003478;
    font-weight: 800;
    font-size: 1.02rem;
}

/* ==========================================================================
   BUDGET / LOAN CALCULATOR PAGE STYLES (Budget.cshtml)
   ========================================================================== */
.budget-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .budget-wrapper {
        grid-template-columns: 1fr;
    }
}

.calc-card,
.result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 26px rgba(0, 20, 80, 0.05);
}

.calc-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #001450;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #003478;
}

.car-preview-box {
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.car-preview-img {
    max-width: 280px;
    height: 165px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

.car-preview-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #001450;
    margin: 0;
}

.loan-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 700;
    color: #0f172a;
}

.loan-settings-panel {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.loan-settings-panel.active {
    display: block;
}

.range-slider-wrap {
    margin-bottom: 18px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.range-val {
    color: #003478;
    font-weight: 800;
}

.range-input {
    width: 100%;
    accent-color: #003478;
}

.result-header {
    background: linear-gradient(135deg, #001450 0%, #003478 100%);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 22px;
    text-align: center;
}

.result-header h2 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.result-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.95rem;
}

.cost-value.highlight {
    color: #003478;
    font-weight: 800;
}

.total-rolling-box {
    background: #f0f7ff;
    border: 1.5px solid #003478;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    margin: 22px 0;
}

.total-rolling-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #003478;
    margin-bottom: 4px;
}

.total-rolling-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: #001450;
}

.loan-summary-box {
    display: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}

.loan-summary-box.active {
    display: block;
}

.loan-summary-title {
    font-weight: 800;
    color: #001450;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.loan-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.loan-stat-val {
    font-weight: 800;
    color: #003478;
}

.note-disclaimer {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-cta-full {
    width: 100%;
    height: 50px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ==========================================================================
   REGISTER TO DRIVE PAGE STYLES (RegisterToDrive.cshtml)
   ========================================================================== */
.drive-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 992px) {
    .drive-wrapper {
        grid-template-columns: 1fr;
    }
}

.drive-badge {
    display: inline-block;
    background: rgba(0, 52, 120, 0.1);
    color: #003478;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.drive-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: #001450;
    margin-bottom: 14px;
    line-height: 1.35;
}

.drive-subtext {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 26px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 26px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #003478;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #001450;
    margin-bottom: 6px;
}

.benefit-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.require-note {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #f0f7ff;
    border-left: 4px solid #003478;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.require-note i {
    font-size: 1.6rem;
    color: #003478;
}

.booking-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 20, 80, 0.07);
}

.booking-header {
    background: linear-gradient(135deg, #001450 0%, #003478 100%);
    color: #ffffff;
    padding: 24px;
    text-align: center;
}

.booking-header h2 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.booking-header p {
    margin: 0;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.booking-body {
    padding: 28px;
}

.selected-car-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.selected-car-thumb {
    width: 110px;
    height: 68px;
    object-fit: contain;
}

.selected-car-info h4 {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2px;
}

.selected-car-info p {
    margin: 0;
    font-weight: 800;
    color: #001450;
    font-size: 1rem;
}

.btn-submit-drive {
    width: 100%;
    height: 50px;
    font-weight: 800;
    margin-top: 10px;
}

.steps-section {
    padding: 60px 0;
    background: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #003478;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

