/* Tracking Hero Section - Modern Split */
.tracking-hero {
    min-height: 650px;
    background: linear-gradient(135deg, #0a1024 0%, #0c2461 100%);
    /* Deep premium navy */
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

/* Tech Grid Overlay */
.tracking-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.tracking-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    opacity: 0.1;
    /* Subtle fade to result section */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Text Content */
.hero-text-content {
    color: var(--white);
    text-align: left;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.breadcrumb span {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-text-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text-content h1 .highlight {
    color: var(--secondary-color);
    display: block;
}

.hero-text-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}

/* Hero Stats */
.hero-stats-row {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 35px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Card Wrapper Reset */
.hero-card-wrapper {
    position: relative;
    /* Can add float animation later */
}

/* Hero Tracking Card - DHL Style */
.hero-tracking-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
    /* Reset alignment */
}

/* Tabs */
.card-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    width: auto;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px 3px 0 0;
}

/* Body */
.card-body {
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
}

.input-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    resize: vertical;
    transition: all 0.3s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(232, 25, 33, 0.1);
}

/* Input fields for Quote and Ship forms */
.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(232, 25, 33, 0.1);
}

.input-group input::placeholder {
    color: var(--text-light);
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Red Button Style (Using Secondary for Brand Consistency but bolder) */
.btn-track-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-track-red:hover {
    background: #09a1c2;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(232, 25, 33, 0.25);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .btn-track-red {
        width: auto;
        min-width: 200px;
    }
}

/* Tracking Result Section */
.tracking-result-section {
    padding: 60px 0;
    background: var(--light-bg);
}

/* Tracking Dashboard Layout */
.tracking-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    padding: 30px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-bg);
}

.dashboard-card h3 i {
    color: var(--secondary-color);
}

/* Status Card (Top) */
.result-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.shipment-id .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.shipment-id h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

/* Progress Tracker Compact */
.progress-tracker-compact {
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 20px;
}

/* Lines connecting steps */
.step::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.step:first-child::before {
    display: none;
}

.step.completed::before {
    background: var(--secondary-color);
}

/* The dot marker */
.step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid #e9ecef;
    border-radius: 50%;
    z-index: 2;
}

.step.completed::after {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.step.active::after {
    background: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(232, 25, 33, 0.2);
}

.step-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Estimated Delivery Row */
.estimated-delivery {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    gap: 30px;
}

.h-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

.delivery-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.delivery-stat i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.delivery-stat small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.delivery-stat strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Dashboard Bottom Row */
.dashboard-row {
    display: flex;
    gap: 20px;
}

.details-card,
.history-card {
    flex: 1;
}

/* Details List */
.details-list {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.detail-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-action-sm {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-action-sm:hover {
    background: var(--light-bg);
    border-color: var(--text-light);
}

/* History Timeline Vertical */
.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.history-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    position: relative;
}

.history-item:last-child {
    padding-bottom: 0;
}

/* Vertical Line */
.history-item::before {
    content: '';
    position: absolute;
    top: 5px;
    /* align with marker top */
    left: 87px;
    /* Align with marker center */
    width: 2px;
    height: 100%;
    background: #e9ecef;
    z-index: 0;
}

.history-item:last-child::before {
    display: none;
}

.time-col {
    width: 70px;
    text-align: right;
    padding-top: 0;
}

.time-col strong {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.time-col small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.history-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--secondary-color);
    z-index: 1;
    margin-top: 4px;
    /* Align with text */
    flex-shrink: 0;
}

.history-item:not(:first-child) .history-marker {
    background: #e9ecef;
    box-shadow: none;
}

.history-info {
    flex: 1;
}

.history-info p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-weight: 500;
}

.history-info small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.btn-view-all {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-row {
        flex-direction: column;
    }

    .estimated-delivery {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .h-divider {
        display: none;
    }

    .progress-steps {
        font-size: 0.8rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    position: relative;
    background: linear-gradient(180deg, var(--light-bg) 0%, #eef2f5 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    /* Reduced from 50px */
}

.section-header .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    /* Slightly smaller header */
}

.faq-grid {
    max-width: 680px;
    /* Reduced from 800px */
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    /* Reduced from 15px */
    border-radius: 10px;
    /* Sharper */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Lighter shadow */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    /* Compact padding */
    background: var(--white);
    /* White bg instead of light-bg for cleaner look */
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.faq-question i {
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
    /* Slight contrast for answer */
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 15px 25px 20px;
    /* Compact padding */
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
    background: transparent;
}

/* Support Section - Help Center */
.support-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header-compact {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-compact h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header-compact p {
    color: var(--text-light);
    font-size: 1rem;
}

.help-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.help-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.help-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(232, 25, 33, 0.2);
}

.help-card.active {
    border: 1px solid var(--secondary-color);
    background: linear-gradient(to bottom, #fff, #f4fcff);
}

.help-icon {
    width: 70px;
    height: 70px;
    background: rgba(232, 25, 33, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--secondary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.help-card:hover .help-icon {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

.help-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.help-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-link i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.help-link:hover {
    color: var(--secondary-color);
}

.help-link:hover i {
    transform: translateX(5px);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-text-content {
        text-align: center;
        margin-bottom: 30px;
    }

    .hero-text-content p {
        margin: 0 auto 30px;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .breadcrumb {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tracking-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-text-content h1 {
        font-size: 2.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .help-center-grid {
        grid-template-columns: 1fr;
    }

    /* Tab buttons smaller text in mobile */
    .tab-btn {
        font-size: 0.85rem;
    }

    .tab-btn.active {
        font-size: 0.8rem;
    }

    /* Increase input field widths in mobile */
    .input-group textarea,
    .input-group input {
        padding: 18px;
        font-size: 1.1rem;
    }

    .card-body {
        padding: 35px 20px;
    }

    /* Dashboard Mobile Refinements */
    .dashboard-row {
        flex-direction: column;
    }

    .estimated-delivery {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .h-divider {
        display: none;
    }

    .progress-steps {
        font-size: 0.8rem;
        gap: 5px;
    }
}