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

:root {
    /* Brand Colors (Cloned from FedEx styling) */
    --purple: #4D148C;
    --orange: #FF6200;
    --orange-hover: #E05300;
    --dark-grey: #333333;
    --light-grey: #FFFFFF;
    --border-color: #D6D6D6;
    --text-color: #333333;
    --text-muted: #717171;
    --accent: #4D148C;
    --font: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    background: #FFFFFF;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 1. Header (Exact Purple Strip) */
.fedex-header {
    background: var(--purple);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
}

.fedex-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo-text .pandoon-part {
    color: white;
}

.logo-text .express-part {
    color: var(--orange);
}

#main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

.arrow-down {
    font-size: 0.6rem;
    vertical-align: middle;
    opacity: 0.7;
}

.fedex-header .btn-signin {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    transition: opacity 0.2s;
}

.fedex-header .btn-signin:hover {
    opacity: 0.8;
}

.fedex-header .search-icon-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    vertical-align: middle;
    transition: opacity 0.2s;
}

.fedex-header .search-icon-btn:hover {
    opacity: 0.8;
}

/* 2. Hero Section (Plane Background with Navy tint) */
.home-hero-banner {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 27, 65, 0.7) 0%, rgba(77, 20, 140, 0.4) 100%);
}

.hero-content-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main-title {
    color: white;
    font-size: 2.75rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Cloned Action Card Widget */
.hero-action-card-cloned {
    max-width: 600px;
    width: 100%;
}

.action-card-tabs-row {
    display: flex;
    gap: 2px;
}

.square-action-tab {
    flex: 1;
    background: white;
    border: none;
    padding: 1.25rem 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s;
}

.square-action-tab svg {
    color: var(--text-muted);
}

.square-action-tab.active {
    background: var(--purple);
    color: white;
}

.square-action-tab.active svg {
    color: white;
}

/* White Bar Container below tabs */
.panel-box-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.action-panel {
    display: none;
}

.action-panel.active {
    display: block;
}

.bar-input-button-group {
    display: flex;
}

.bar-input-button-group input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.btn-orange-arrow {
    background: var(--orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-orange-arrow:hover {
    background: var(--orange-hover);
}

.bar-input-button-group.multi-inputs {
    gap: 0.5rem;
}

.bar-input-button-group.multi-inputs input {
    border-radius: 4px;
    border-right: 1px solid var(--border-color);
}

.bar-input-button-group.multi-inputs button {
    border-radius: 4px;
}

/* 3. Alert Info Banner */
.ieepa-alert-container {
    background: #FFFFFF;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.ieepa-alert-card {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #005F9E;
    background: #F4F9FD;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ieepa-alert-card .info-icon {
    font-size: 1.25rem;
    color: #005F9E;
    font-weight: bold;
}

.ieepa-alert-card .info-text {
    font-size: 0.85rem;
    color: #333333;
}

.ieepa-alert-card .info-link {
    color: #005F9E;
    text-decoration: underline;
}

/* 4. Icon Nav Grid Row */
.icon-nav-grid {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    text-align: center;
}

.icon-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.icon-nav-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid #005F9E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #005F9E;
    text-decoration: none;
    transition: background 0.2s;
}

.icon-nav-circle:hover {
    background: #F0F7FD;
}

.icon-nav-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #005F9E;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* 5. Why Ship 2-Column Section */
.why-ship-section {
    background: #F7F7F7;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.why-ship-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.why-ship-left h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark-grey);
    margin-bottom: 2rem;
}

.why-ship-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.why-ship-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.why-ship-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.why-ship-right {
    display: flex;
    justify-content: center;
}

.employee-photo {
    width: 100%;
    max-width: 380px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* CTA Middle strip banner */
.cta-banner-cloned {
    background: var(--purple);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-banner-content h2 {
    font-size: 1.85rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Double Feature Grid Sections */
.features-section-block {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-section-block.gray-bg {
    background: #F7F7F7;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.block-title {
    font-size: 1.85rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--dark-grey);
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.feature-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.feature-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.feature-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature-link {
    color: var(--purple);
    text-decoration: underline;
    font-weight: 700;
    font-size: 0.85rem;
}

.single-wide-feature {
    display: flex;
    justify-content: center;
    text-align: center;
}

.wide-feature-info {
    max-width: 700px;
}

.wide-feature-info h2 {
    font-size: 1.85rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.wide-feature-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Disclaimer Links Bottom Bar */
.disclaimer-links-bar {
    background: #FFFFFF;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.disclaimer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.disclaimer-container a {
    color: var(--purple);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.disclaimer-container a:hover {
    text-decoration: underline;
}

.disclaimer-microtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Services section spacing */
.services-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.services-title {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-box {
    background: white;
    border-top: 5px solid var(--purple);
    padding: 2.25rem;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-icon-banner {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.service-icon-banner.express { background: var(--purple); }
.service-icon-banner.ground { background: var(--orange); }
.service-icon-banner.freight { background: #333; }

.service-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Subpages Header & Cards (Track, Ship, Rates) */
.view-section {
    display: none;
    flex: 1;
}

.view-section.active {
    display: block;
}

.subpage-header {
    background: var(--purple);
    color: white;
    text-align: center;
    padding: 3.5rem 2rem;
}

.subpage-header h2 {
    font-size: 2.25rem;
    font-weight: 400;
}

.subpage-header p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    opacity: 0.85;
}

.subpage-card {
    max-width: 750px;
    margin: 3rem auto;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    outline: none;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-control:focus {
    border-color: var(--purple);
}

/* Tracking Header Sub-menu */
.fedex-track-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.track-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-header-container h2 {
    font-size: 1.35rem;
    font-weight: 400;
    color: #4D4D4D;
}

.track-header-links {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.track-header-links a {
    color: #005F9E;
    text-decoration: none;
}

.track-header-links span {
    color: #CCC;
}

/* High-Fidelity Cloned Tracking Results Panel */
.tracking-results-card-high-fidelity {
    max-width: 1200px;
    margin: 3rem auto;
    background: white;
    padding: 0 2rem;
}

.tracking-results-layout-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    border-bottom: 1.5px solid #EAEAEA;
    padding-bottom: 3rem;
}

.status-summary-cols {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.summary-col.center-align {
    align-items: center;
    text-align: center;
}

.col-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.col-main-day {
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1;
}

.col-date-time {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0.25rem;
}

.col-micro-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.obtain-proof-link {
    font-size: 0.75rem;
    color: #005F9E;
    text-decoration: underline;
    font-weight: 700;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.badge-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

.badge-check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22C55E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.col-tracking-id-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: var(--text-color);
}

.edit-star-icons {
    color: #005F9E;
    font-size: 0.95rem;
}

/* Shipment facts section */
.shipment-facts-section {
    margin-top: 2rem;
    border-top: 1px solid #EAEAEA;
    padding-top: 2rem;
}

.shipment-facts-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 1.5rem;
}

.facts-block-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 0.75rem;
}

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

.facts-table tr {
    border-bottom: 1px solid #F1F1F1;
}

.facts-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
}

.facts-table td:first-child {
    font-weight: 700;
    color: var(--text-muted);
    width: 35%;
}

.facts-table td:last-child {
    color: var(--text-color);
    font-weight: 600;
}

.standard-transit-highlight-row {
    border: 1px solid red;
    background: rgba(239, 68, 68, 0.02);
}

.standard-transit-highlight-row td {
    color: red !important;
    font-weight: 800 !important;
}

/* Right Sidebar vertical timeline */
.right-vertical-timeline {
    border-left: 2px solid #EAEAEA;
    padding-left: 1.5rem;
    position: relative;
    margin-top: 1.5rem;
}

.timeline-sidebar-node {
    position: relative;
    padding-bottom: 1.5rem;
}

.sidebar-node-indicator {
    position: absolute;
    left: -31px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid #CCC;
}

.timeline-sidebar-node.completed .sidebar-node-indicator {
    background: #22C55E;
    border-color: #22C55E;
}

.timeline-sidebar-node.active .sidebar-node-indicator {
    background: #22C55E;
    border-color: #22C55E;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.sidebar-node-status {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.timeline-sidebar-node.active .sidebar-node-status {
    color: #22C55E;
}

.sidebar-node-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.view-travel-history-btn-link {
    display: block;
    text-align: center;
    color: #005F9E;
    text-decoration: underline;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* Bottom Travel History Grouping */
.travel-history-table-section {
    margin-top: 3rem;
}

.travel-history-table-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 1.5rem;
}

.travel-history-day-header {
    background: #F7F7F7;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-color);
    padding: 0.65rem 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
}

.travel-history-day-row {
    display: grid;
    grid-template-columns: 90px 24px 1fr 180px;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F1F1F1;
    align-items: center;
}

.history-row-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.history-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CCC;
    margin: 0 auto;
}

.travel-history-day-row.active .history-row-dot {
    background: #22C55E;
}

.history-row-desc {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 600;
}

.history-row-desc .delay-text-highlight {
    color: red;
    font-weight: bold;
    display: block;
    font-size: 0.8rem;
    margin-top: 2px;
}

.history-row-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    text-transform: uppercase;
    font-weight: 600;
}

.error-panel-box {
    max-width: 750px;
    margin: 2rem auto;
    background: #FFF5F5;
    border: 1px solid #FEB2B2;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.error-panel-box h3 {
    color: #C53030;
    font-weight: 800;
}

.error-panel-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Wizard (Ship Manager) */
.wizard-box {
    max-width: 750px;
    margin: 3rem auto 1rem auto;
}

.wizard-steps-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.wizard-steps-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.wizard-step-node {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    color: var(--text-muted);
}

.wizard-step-node.active {
    border-color: var(--purple);
    color: var(--purple);
}

.wizard-step-node.completed {
    border-color: var(--purple);
    background: var(--purple);
    color: white;
}

.wizard-step-panel {
    display: none;
}

.wizard-step-panel.active {
    display: block;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--purple);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

/* Rates list inside wizard */
.rate-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rate-option-card {
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.rate-option-card:hover {
    border-color: var(--purple);
    background: rgba(77,20,140,0.02);
}

.rate-option-card.selected {
    border-color: var(--purple);
    background: rgba(77,20,140,0.05);
}

.rate-option-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rate-option-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.rate-option-card.selected .rate-option-circle {
    border-color: var(--purple);
    background: var(--purple);
}

.rate-option-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.rate-option-eta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rate-option-price {
    font-weight: 800;
    font-size: 1.15rem;
}

/* Printable barcode label */
.label-container {
    border: 2px solid #000;
    padding: 1.5rem;
    max-width: 420px;
    margin: 1.5rem auto;
    background: white;
    color: #000;
    font-family: monospace;
}

.label-header {
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-logo {
    font-weight: 900;
    font-size: 1.15rem;
}

.label-service-banner {
    background: #000;
    color: white;
    padding: 0.25rem 0.5rem;
    font-weight: 800;
    font-size: 0.8rem;
}

.label-section {
    border-bottom: 1px solid #000;
    padding: 0.5rem 0;
}

.label-addresses {
    display: flex;
    justify-content: space-between;
}

.label-address-block {
    width: 48%;
    font-size: 0.7rem;
}

.label-address-block strong {
    display: block;
    margin-bottom: 0.25rem;
}

.label-tracking {
    text-align: center;
    padding: 1rem 0;
}

.barcode {
    width: 240px;
    height: 55px;
    margin: 0.75rem auto;
    background: repeating-linear-gradient(90deg, #000, #000 2px, #fff 2px, #fff 6px, #000 6px, #000 8px, #fff 8px, #fff 10px, #000 10px, #000 11px, #fff 11px, #fff 14px);
}

.tracking-code {
    font-size: 1.1rem;
    font-weight: 800;
}

/* Accordion Support */
.faq-list {
    max-width: 750px;
    margin: 2rem auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-color);
}

.faq-content {
    display: none;
    padding: 0 1.25rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-content {
    display: block;
}

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

/* Footer (Exact 4-Column Layout) */
footer {
    background: #222222;
    color: #FAFAFA;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 5px solid var(--purple);
    margin-top: auto;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: #AAA;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #AAA;
}

.footer-bottom-links a {
    color: #AAA;
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Chat widget (Pill Button "ASK PANDOON") */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-toggle-btn-pandoon {
    background: var(--purple);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(77, 20, 140, 0.4);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.chat-toggle-btn-pandoon:hover {
    opacity: 0.95;
}

.chat-box {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-box.active {
    display: flex;
}

.chat-header {
    background: var(--purple);
    color: white;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: #EAEAEA;
    color: #333;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-msg.user {
    background: var(--purple);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-input-wrapper {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
}

.chat-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.chat-input-wrapper button {
    background: var(--purple);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    header .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .home-hero-banner {
        height: auto;
        padding: 4rem 0;
    }
    .hero-main-title {
        font-size: 2rem;
    }
    .hero-action-card-cloned {
        margin: 0 auto;
    }
    .icon-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .why-ship-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .features-grid-3 {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
