/* ===== ALIVE Vietnam B2B Quotation Styles ===== */
/* Version: 2.0 - Modular CSS */

:root {
    /* Altech Industrial Machinery Brand Colors */
    --primary: #1a365d;          /* Deep Industrial Blue - trust & reliability */
    --primary-light: #2c5282;    /* Industrial Blue lighter shade */
    --accent: #c53030;           /* Industrial Red - energy & machinery */
    --accent-light: #e53e3e;     /* Bright Red accent */
    --secondary: #2d3748;        /* Steel Gray - industrial strength */
    --secondary-light: #4a5568;  /* Light steel */

    /* Neutral Colors */
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-900: #1a202c;

    /* Status Colors */
    --success: #276749;          /* Industrial green */
    --warning: #c05621;          /* Orange warning */
    --info: #2b6cb0;             /* Info blue */
    --industrial: #1a365d;
    --steel: #4a5568;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    padding: 30px 0;
    border-bottom: 3px solid var(--accent);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo {
    display: block;
}

.logo img {
    height: 80px;
    width: auto;
}

.company-info {
    text-align: right;
    font-size: 13px;
    color: var(--gray-700);
}

.company-info strong {
    color: var(--primary);
}

/* Document Title */
.doc-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.doc-title h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.doc-title p {
    opacity: 0.9;
    font-size: 15px;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray-500);
}

.info-value {
    font-weight: 500;
    color: var(--gray-900);
}

.info-value a {
    color: var(--accent);
    text-decoration: none;
}

/* Section */
.section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .number {
    background: var(--accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Reference Box */
.reference-box {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.reference-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 14px;
}

.reference-box p {
    color: var(--gray-700);
    font-size: 13px;
}

.reference-box a {
    color: var(--accent);
    font-weight: 500;
}

/* Comparison Table */
.comparison-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
}

.comparison-table th.highlight {
    background: var(--accent);
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
}

.comparison-table tr:hover {
    background: var(--gray-50);
}

.comparison-table .category {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--primary);
}

.comparison-table .price {
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
}

.comparison-table .total-row {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.comparison-table .highlight-row {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: #333;
}

.comparison-table .total-row td {
    border-bottom: none;
    font-weight: 600;
    font-size: 15px;
}

.check {
    color: var(--success);
    font-weight: bold;
}

.cross {
    color: var(--gray-300);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.badge-success {
    background: #d9f2e4;
    color: #0d6e3d;
}

.badge-info {
    background: #e1ebf5;
    color: var(--primary);
}

.badge-warning {
    background: #fef9e7;
    color: var(--accent);
}

.badge-premium {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: #333;
}

/* Option Cards */
.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.option-card {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(184, 134, 11, 0.15);
}

.option-card.recommended {
    border-color: var(--accent);
    position: relative;
}

.option-card.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 5px 40px;
    font-size: 11px;
    font-weight: 500;
    transform: rotate(45deg);
}

.option-header {
    background: var(--gray-100);
    padding: 20px;
    text-align: center;
}

.option-card.recommended .option-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.option-card.recommended .option-header.gold {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.option-header h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.option-header p {
    font-size: 12px;
    opacity: 0.8;
}

.option-body {
    padding: 25px;
}

.option-price {
    text-align: center;
    margin-bottom: 20px;
}

.option-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.option-price .currency {
    font-size: 14px;
    color: var(--gray-500);
}

.option-price .note {
    font-size: 12px;
    color: var(--gray-500);
}

.option-features {
    list-style: none;
}

.option-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-features li::before {
    content: '\2713';
    color: var(--success);
    font-weight: bold;
}

/* Page List */
.page-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.page-item {
    background: var(--gray-50);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-item .icon {
    color: var(--accent);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.feature-item h5 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 13px;
}

.feature-item p {
    color: var(--gray-600);
    font-size: 12px;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gray-200);
}

.timeline-item {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.timeline-content h5 {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 12px;
    color: var(--gray-500);
}

/* Payment Table */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payment-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

.payment-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.payment-table .percent {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* Terms */
.terms-list {
    list-style: none;
}

.terms-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid var(--gray-100);
}

.terms-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 18px;
}

/* Additional Services */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
}

.addon-item .name {
    font-weight: 500;
}

.addon-item .price {
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.footer p {
    font-size: 13px;
    line-height: 1.8;
}

.signature-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.signature-box .name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.signature-box .title {
    font-size: 13px;
    opacity: 0.8;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    .section {
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }
    .no-print {
        display: none;
    }
}

/* Highlight Box - Nexus Gold */
.highlight-box {
    background: linear-gradient(135deg, #fef9e7 0%, #fdf2d4 100%);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.highlight-box h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

/* Info Box - Nexus Navy */
.warning-box {
    background: linear-gradient(135deg, #e8eef5 0%, #d4e0ed 100%);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.warning-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Language Switcher - Nexus Financial Design */
.lang-switcher {
    position: fixed;
    top: 72px;
    right: 32px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 6px 5px;
    border-radius: 20px;
    box-shadow:
        0 4px 20px rgba(13, 40, 71, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lang-btn {
    position: relative;
    padding: 9px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Be Vietnam Pro', sans-serif;
    text-transform: uppercase;
    text-align: center;
}

.lang-btn::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-btn[data-lang="vi"]::before {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(184, 134, 11, 0.6);
}

.lang-btn[data-lang="ja"]::before {
    background: var(--secondary);
    box-shadow: 0 0 6px rgba(112, 128, 144, 0.6);
}

.lang-btn[data-lang="en"]::before {
    background: var(--primary);
    box-shadow: 0 0 6px rgba(13, 40, 71, 0.6);
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    color: var(--primary);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding-left: 22px;
}

.lang-btn.active::before {
    opacity: 1;
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e8eef4 100%);
}

/* Divider between buttons */
.lang-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 24px;
    background: rgba(255, 255, 255, 0.15);
    transition: opacity 0.3s ease;
}

.lang-btn.active::after,
.lang-btn.active + .lang-btn::after {
    opacity: 0;
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 16px;
        right: 16px;
        padding: 4px 4px;
    }
    .lang-btn {
        padding: 7px 12px;
        font-size: 11px;
        letter-spacing: 0.8px;
    }
    .lang-btn.active {
        padding-left: 16px;
    }
    .lang-btn::before {
        width: 5px;
        height: 5px;
        left: 5px;
    }
}

@media print {
    .lang-switcher {
        display: none;
    }
}

/* ===== STICKY HEADER NAVIGATION BAR ===== */

/* Header Navigation Bar */
.header-nav {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: top 0.3s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.header-nav.visible {
    top: 0;
}

.header-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header-nav-logo {
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.header-nav-list li {
    margin: 0;
}

.header-nav-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-nav-list a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.header-nav-list a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-nav-list .nav-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.header-nav-list a.active .nav-num {
    background: var(--accent);
}

.header-nav-list .nav-label {
    display: inline;
}

/* Progress bar inside header */
.header-nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.header-nav-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
    transition: width 0.1s ease-out;
}

/* Mobile toggle button */
.header-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-nav-toggle .toggle-icon {
    font-size: 18px;
}

/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-nav-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-list a:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--gray-300);
}

.mobile-nav-list a.active {
    background: linear-gradient(90deg, rgba(13, 40, 71, 0.08) 0%, transparent 100%);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.mobile-nav-list .nav-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--gray-100);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
}

.mobile-nav-list a.active .nav-num {
    background: var(--primary);
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(13, 40, 71, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 40, 71, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .header-nav-list .nav-label {
        display: none;
    }

    .header-nav-list a {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .header-nav-list {
        display: none;
    }

    .header-nav-toggle {
        display: flex;
    }

    .header-nav-container {
        height: 52px;
    }

    .mobile-nav-dropdown {
        top: 52px;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .addon-grid {
        grid-template-columns: 1fr;
    }

    .page-list {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .company-info {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .header-nav-container {
        padding: 0 15px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 25px;
        right: 20px;
    }
}

/* Print Styles */
@media print {
    .header-nav,
    .mobile-nav-dropdown,
    .back-to-top {
        display: none !important;
    }
}
