/* 
   templates/fedex/assets/css/fedex.css
   Standalone Courier Template Tracking UI
   Clean Enterprise Layout with Purple & Vibrant Accent Palette
*/

:root {
    --courier-primary: #4D148C;
    --courier-primary-hover: #3B0E6D;
    --courier-accent: #FF6200;
    --courier-accent-hover: #E05600;
    --courier-navy: #0B192C;
    
    --bg-page: #F7F7FA;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F1F2F6;
    
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --text-inverse: #FFFFFF;
    
    --border-color: #E5E7EB;
    --border-strong: #D1D5DB;
    
    --status-intransit-bg: #EFF6FF;
    --status-intransit-text: #1E40AF;
    --status-intransit-border: #BFDBFE;
    
    --status-delivered-bg: #F0FDF4;
    --status-delivered-text: #166534;
    --status-delivered-border: #BBF7D0;
    
    --status-onhold-bg: #FFFBEB;
    --status-onhold-text: #92400E;
    --status-onhold-border: #FDE68A;
    
    --status-created-bg: #F9FAFB;
    --status-created-text: #4B5563;
    --status-created-border: #E5E7EB;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--courier-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--courier-primary-hover);
}

/* =========================================
   HEADER / NAVIGATION (OFFICIAL PURPLE NAVBAR)
   ========================================= */
.fedex-header {
    background: #4D148C;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.fedex-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fedex-brand-logo {
    display: inline-flex;
    align-items: baseline;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.2px;
    text-decoration: none;
    line-height: 1;
}

.logo-fed {
    color: #FFFFFF;
}

.logo-ex {
    color: #FF6200;
}

.logo-dot {
    color: #FF6200;
    font-size: 20px;
    margin-left: 1px;
}

.fedex-main-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 36px;
}

.fedex-menu-item {
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.fedex-menu-item:hover {
    color: #E9D5FF;
}

.fedex-menu-item i {
    font-size: 10px;
    opacity: 0.85;
}

.fedex-header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.fedex-auth-link {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fedex-auth-link:hover {
    color: #E9D5FF;
}

.fedex-search-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color 0.15s ease;
}

.fedex-search-btn:hover {
    color: #E9D5FF;
}

/* =========================================
   HERO SECTION (COURIER PHOTO + TABS + INPUT)
   ========================================= */
.fedex-hero-official {
    position: relative;
    min-height: 530px;
    background-color: #2D0B54;
    background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32)), url('../images/hero-bg.jpg');
    background-position: center 25%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 65px 20px 75px;
}

.fedex-hero-official-inner {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-welcome-title {
    color: #FFFFFF;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 36px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.fedex-action-tabs-container {
    width: 100%;
    max-width: 800px;
    margin: 28px auto 0;
    background: #FFFFFF;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
    position: relative;
    padding-bottom: 38px;
}

/* Tabs Row: Flush with card top, Active tab protrudes above and below */
.fedex-tabs-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
    position: relative;
    border-bottom: 1px solid #ECECEC;
}

.fedex-tab-btn {
    flex: 1;
    height: 120px;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #262626;
    font-family: inherit;
    transition: all 0.15s ease;
    user-select: none;
    padding: 16px 12px;
    position: relative;
}

.fedex-tab-btn:hover:not(.active) {
    background: #F9FAFB;
}

/* Protruding Active Tab (matches Image 2) */
.fedex-tab-btn.active {
    background: #4D148C;
    color: #FFFFFF;
    height: 152px;
    margin-top: -16px;
    margin-bottom: -16px;
    flex: 1.08;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(77, 20, 140, 0.35);
}

.fedex-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.fedex-tab-btn.active .fedex-tab-icon svg {
    stroke: #FFFFFF;
    fill: none;
}

.fedex-tab-btn:not(.active) .fedex-tab-icon svg {
    stroke: #262626;
    fill: none;
}

.fedex-tab-btn.active circle {
    stroke: #FFFFFF;
    fill: #4D148C;
}

.fedex-tab-btn:not(.active) circle {
    stroke: #262626;
    fill: #FFFFFF;
}

.fedex-tab-btn.active rect {
    stroke: #FFFFFF;
    fill: #4D148C;
}

.fedex-tab-btn:not(.active) rect {
    stroke: #262626;
    fill: #FFFFFF;
}

.fedex-tab-label {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
}

/* Big Search Bar on generous white card background directly matching Image 2 */
.fedex-hero-panel {
    width: 100%;
    padding: 44px 36px 0;
}

.fedex-hero-search-bar {
    background: #FFFFFF;
    display: flex;
    align-items: stretch;
    height: 72px;
    width: 100%;
}

.fedex-hero-track-input {
    flex: 1;
    min-width: 0;
    height: 72px;
    background: #FFFFFF;
    border: 1px solid #757575;
    border-right: none;
    border-radius: 0;
    padding: 0 24px;
    font-size: 24px;
    font-weight: 400;
    color: #111827;
    outline: none;
    font-family: inherit;
}

.fedex-hero-track-input:focus {
    border-color: #4D148C;
}

.fedex-hero-track-input::placeholder {
    color: #6B7280;
    font-style: italic;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1.5px;
}

.fedex-hero-track-btn {
    flex: 0 0 240px;
    height: 72px;
    background: #FF6200;
    color: #FFFFFF;
    border: 1px solid #FF6200;
    border-radius: 0;
    font-family: inherit;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.fedex-hero-track-btn:hover {
    background: #E05600;
    border-color: #E05600;
}

.fedex-hero-track-btn i {
    font-size: 20px;
    transition: transform 0.15s ease;
}

.fedex-hero-track-btn:hover i {
    transform: translateX(4px);
}

/* =========================================
   PROMO BANNER (PURPLE WITH DISCOUNT TAG & BUTTON)
   ========================================= */
.fedex-promo-banner {
    background: #4D148C;
    padding: 26px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fedex-promo-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.promo-tag-icon-box {
    flex-shrink: 0;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-title {
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.promo-subtext {
    color: #E9D5FF;
    font-size: 14px;
    font-weight: 400;
    margin-top: 4px;
    line-height: 1.4;
}

.promo-btn-account {
    flex-shrink: 0;
    background: #FFFFFF;
    color: #4D148C;
    border: 2px solid #FFFFFF;
    border-radius: 9999px;
    padding: 11px 32px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    display: inline-block;
}

.promo-btn-account:hover {
    background: #F3E8FF;
    color: #3B0E6D;
}

/* Backwards-compatible / Track Card styles */
.fedex-track-card {
    background: #FFFFFF;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.fedex-track-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.fedex-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.fedex-search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
}

.fedex-track-input {
    width: 100%;
    height: 52px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 16px 10px 48px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.5px;
    background: var(--bg-subtle);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fedex-track-input:focus {
    background: #FFFFFF;
    border-color: var(--courier-primary);
}

.fedex-track-input::placeholder {
    font-weight: 400;
    color: var(--text-light);
    font-size: 14.5px;
}

.fedex-track-btn {
    background: var(--courier-accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.fedex-track-btn:hover {
    background: var(--courier-accent-hover);
}

.track-form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: left;
    padding-left: 8px;
}

/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.fedex-main {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

/* =========================================
   OFFICIAL FEDEX REAL-TIME TRACKING RESULT UI
   Cardless, flat, pristine layout matching official FedEx
   ========================================= */
.fedex-track-page-wrapper {
    background: #FFFFFF;
    min-height: 80vh;
    padding: 1px 24px 80px;
    max-width: 820px;
    margin: 0 auto;
}

/* Header summary: Delivery Status & Tracking ID */
.fedex-status-header-section {
    margin-bottom: 34px;
}

.fedex-meta-label {
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: #1F2937;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.2;
}

.fedex-status-main-headline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.fedex-status-title-text {
    font-size: 29px;
    font-weight: 400;
    color: #262626;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.fedex-status-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #4D148C;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}

.fedex-tracking-id-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fedex-tracking-id-num {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.5px;
}

.fedex-icon-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #007AB7;
    font-size: 18px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.fedex-icon-action-btn:hover {
    color: #005A87;
    transform: scale(1.1);
}

/* =========================================
   OFFICIAL VERTICAL STEPPER TIMELINE
   Continuous rail with active purple pulse node and pill
   ========================================= */
.fedex-vertical-stepper {
    position: relative;
    padding: 10px 0 20px;
    margin-bottom: 30px;
}

.fedex-step-row {
    display: flex;
    align-items: flex-start;
    position: relative;
    min-height: 82px;
}

.fedex-step-row:last-child {
    min-height: auto;
}

/* Rail Column on the left */
.stepper-rail-column {
    width: 52px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    align-self: stretch;
}

/* Continuous 8px rail line running through the row */
.stepper-rail-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    top: 0;
    bottom: 0;
    z-index: 1;
}

/* First step rounded top cap */
.fedex-step-row:first-child .stepper-rail-bar {
    top: 8px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Last step ends at node or rounded bottom cap */
.fedex-step-row:last-child .stepper-rail-bar {
    bottom: auto;
    height: 14px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Color states of rail */
.rail-purple {
    background: #4D148C;
}

.rail-green {
    background: #008A00;
}

.rail-gray {
    background: #E5E7EB;
}

/* Split rail for active step: top is purple, bottom is gray (transitions behind center of 48px circle) */
.rail-active-split {
    background: linear-gradient(to bottom, #4D148C 24px, #E5E7EB 24px);
}

/* Nodes on the rail */
.stepper-node-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Completed node (white dot inside purple or green rail) */
.node-dot-completed {
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
}

/* Pending node (gray dot inside light gray rail) */
.node-dot-pending {
    width: 6px;
    height: 6px;
    background: #9CA3AF;
    border-radius: 50%;
}

/* Active node (Big purple circle with white circular arrow) */
.node-active-circle {
    width: 48px;
    height: 48px;
    background: #4D148C;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(77, 20, 140, 0.45);
    margin-top: -2px;
}

/* Delivered state: Green active checkmark node matching FedEx reference */
.node-active-circle.is-delivered {
    background: #008A00;
    box-shadow: 0 4px 14px rgba(0, 138, 0, 0.45);
}

.fedex-status-arrow-icon.is-delivered {
    background: #008A00;
}

/* Delivered last row: green rail extends below node with rounded cap */
.fedex-step-row.is-delivered-last .stepper-rail-bar {
    bottom: auto;
    height: 38px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #008A00;
}

.node-active-inner-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #FFFFFF;
}

/* Content Column on the right */
.stepper-content-column {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
    padding: 0 0 28px;
}

/* Active milestone highlighted with light-gray pill background */
.stepper-content-column.is-active-pill {
    background: #F4F4F6;
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 22px;
}

.milestone-badge-title {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #262626;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1.25;
}

.milestone-location-name {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    text-transform: uppercase;
    margin-bottom: 3px;
    line-height: 1.3;
}

.milestone-subtitle-italic {
    font-size: 13px;
    font-style: italic;
    color: #6B7280;
    margin-bottom: 2px;
    line-height: 1.25;
}

.milestone-timestamp-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.3;
}

.milestone-extra-comment {
    font-size: 12px;
    color: #4B5563;
    margin-top: 6px;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 2px solid #4D148C;
}

/* View Travel History Link (Matching FedEx reference) */
.fedex-travel-history-link-wrap {
    display: flex;
    justify-content: center;
    margin: 28px auto 32px;
}

.fedex-view-history-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 500;
    color: #007AB7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px 12px;
    transition: color 0.15s ease;
}

.fedex-view-history-btn:hover {
    color: #005A87;
}

.fedex-view-history-btn .history-arrow {
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
}

/* Cardless, Flat Travel History View */
.fedex-cardless-history-container {
    max-width: 680px;
    margin: 0 auto 36px;
    padding: 16px 10px 24px;
    border-top: 1px solid #ECECEC;
}

.fedex-cardless-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.fedex-cardless-history-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fedex-cardless-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cardless-history-item {
    padding: 16px 0;
    border-bottom: 1px solid #F0F0F2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.cardless-history-item:last-child {
    border-bottom: none;
}

.cardless-history-left {
    flex: 1;
}

.cardless-history-status {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cardless-history-status.is-delivered {
    color: #008A00;
}

.cardless-history-location {
    font-size: 13.5px;
    color: #374151;
    margin-bottom: 3px;
}

.cardless-history-comment {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
    font-style: italic;
}

.cardless-history-time {
    font-size: 12.5px;
    color: #6B7280;
    white-space: nowrap;
    text-align: right;
}

/* Floating Customer Assistant with Ask FedEx Pill (matching screenshot) */
.fedex-floating-assistant-wrap {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fedex-assistant-pill-btn {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 30px;
    padding: 4px 16px 4px 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    font-family: inherit;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fedex-assistant-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.assistant-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4D148C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(77, 20, 140, 0.35);
}

.assistant-pill-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #3B0E6D;
    letter-spacing: -0.2px;
}

.fedex-refresh-mini-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #4D148C;
    border: 1px solid #E5E7EB;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.15s ease;
}

.fedex-refresh-mini-btn:hover {
    transform: rotate(90deg);
}

/* Expandable Shipment Details & Facts Accordions */
.fedex-details-accordion-section {
    margin-top: 40px;
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
}

.fedex-accordion-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #FFFFFF;
}

.fedex-accordion-toggle {
    width: 100%;
    padding: 16px 20px;
    background: #FAFBFD;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    transition: background 0.15s ease;
}

.fedex-accordion-toggle:hover {
    background: #F3F4F6;
}

.fedex-accordion-body {
    padding: 20px;
    border-top: 1px solid #E5E7EB;
}

.fedex-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 24px;
}

.fedex-spec-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-key {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6B7280;
    letter-spacing: 0.5px;
}

.spec-val {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.spec-val-highlight {
    color: #4D148C;
    font-weight: 800;
}

/* Travel History Table */
.fedex-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fedex-history-table th {
    background: #F9FAFB;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: #4B5563;
    border-bottom: 1px solid #E5E7EB;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fedex-history-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
    vertical-align: top;
}

.fedex-history-table tr:last-child td {
    border-bottom: none;
}

/* Dropdown quick search in navbar */
.fedex-nav-search-dropdown {
    background: #3B0E6D;
    padding: 12px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fedex-nav-search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
}

.fedex-nav-search-form input {
    flex: 1;
    height: 42px;
    border: none;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.fedex-nav-search-form button {
    width: 48px;
    background: #FF6200;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* =========================================
   TRACKING RESULT CARD (Flat & Clean)
   ========================================= */
.fedex-shipment-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.fedex-panel-header {
    background: #FAFBFD;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-header-left .waybill-caption {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.panel-header-left .waybill-title {
    font-size: 24px;
    font-weight: 800;
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
    color: var(--courier-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn-copy-waybill {
    background: #FAF5FF;
    border: 1px solid #D8B4FE;
    color: var(--courier-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease;
}

.btn-copy-waybill:hover {
    background: #F3E8FF;
}

.panel-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status Badges */
.fedex-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.pill-in-transit {
    background: var(--status-intransit-bg);
    color: var(--status-intransit-text);
    border: 1px solid var(--status-intransit-border);
}

.pill-delivered {
    background: var(--status-delivered-bg);
    color: var(--status-delivered-text);
    border: 1px solid var(--status-delivered-border);
}

.pill-out-for-delivery {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FED7AA;
}

.pill-on-hold {
    background: var(--status-onhold-bg);
    color: var(--status-onhold-text);
    border: 1px solid var(--status-onhold-border);
}

.pill-created {
    background: var(--status-created-bg);
    color: var(--status-created-text);
    border: 1px solid var(--status-created-border);
}

/* Delivery Highlight Banner */
.delivery-estimate-strip {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.delivery-estimate-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.delivery-estimate-val {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.delivery-location-val {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================
   PROGRESS STEPPER BAR
   ========================================= */
.stepper-container {
    padding: 30px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #FFFFFF;
}

.stepper-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.stepper-track-bg {
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--border-color);
    z-index: 1;
}

.stepper-track-fill {
    position: absolute;
    top: 18px;
    left: 40px;
    height: 4px;
    background: var(--courier-primary);
    z-index: 2;
    transition: width 0.4s ease;
}

.stepper-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-column: column;
    align-items: center;
    text-align: center;
    width: 90px;
}

.step-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.step-completed .step-node {
    background: var(--courier-primary);
    border-color: var(--courier-primary);
    color: #FFFFFF;
}

.step-active .step-node {
    background: #FFFFFF;
    border-color: var(--courier-accent);
    color: var(--courier-accent);
    box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.15);
}

.step-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.step-completed .step-title,
.step-active .step-title {
    color: #111827;
}

/* =========================================
   TWO-COLUMN CONTENT (Details & Timeline)
   ========================================= */
.shipment-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0;
}

.shipment-details-col {
    padding: 24px;
    border-right: 1px solid var(--border-color);
    background: #FFFFFF;
}

.shipment-timeline-col {
    padding: 24px;
    background: #FFFFFF;
}

.col-heading {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--courier-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Details List */
.details-list {
    list-style: none;
}

.details-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.details-item:last-child {
    border-bottom: none;
}

.details-item .item-label {
    color: var(--text-muted);
    font-weight: 600;
}

.details-item .item-value {
    color: #111827;
    font-weight: 700;
    text-align: right;
}

/* Route Strip */
.route-spec-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 18px;
}

.route-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-point {
    flex: 1;
}

.route-point-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.route-point-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
}

.route-divider-icon {
    padding: 0 12px;
    color: var(--courier-primary);
    font-size: 16px;
}

/* =========================================
   VERTICAL TIMELINE
   ========================================= */
.fedex-timeline {
    position: relative;
    padding-left: 24px;
}

.fedex-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.timeline-event-card {
    position: relative;
    margin-bottom: 22px;
}

.timeline-event-card:last-child {
    margin-bottom: 0;
}

.timeline-pin {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--border-strong);
    z-index: 2;
}

.timeline-event-card:first-child .timeline-pin {
    border-color: var(--courier-accent);
    background: var(--courier-accent);
}

.timeline-pin.pin-delivered { border-color: #16A34A; background: #16A34A; }
.timeline-pin.pin-in-transit { border-color: var(--courier-primary); }

.timeline-content-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.timeline-event-card:first-child .timeline-content-card {
    border-left: 3px solid var(--courier-accent);
}

.timeline-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-status-text {
    font-weight: 800;
    font-size: 13.5px;
    color: #111827;
}

.timeline-timestamp {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.timeline-location-text {
    font-size: 12.5px;
    color: var(--courier-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-address-text {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-comment-box {
    font-size: 12px;
    color: #4B5563;
    background: var(--bg-subtle);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    margin-top: 6px;
    font-style: italic;
}

/* =========================================
   ERROR & NOT FOUND STATE
   ========================================= */
.fedex-error-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.error-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FEF2F2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
}

.error-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.error-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* =========================================
   CARDLESS FEATURES SECTION (THIN ICONS & FLAT)
   ========================================= */
.fedex-cardless-section {
    max-width: 1240px;
    margin: 50px auto 40px;
    padding: 0 28px;
}

.fedex-features-cardless {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #E5E7EB;
}

.feature-item-cardless {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
}

.feature-icon-thin {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    color: #4D148C;
    margin-bottom: 14px;
}

.feature-icon-thin svg {
    stroke-width: 1.35;
    stroke: #4D148C;
}

.feature-title-cardless {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.feature-desc-cardless {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.6;
}

/* Cardless FAQ Section */
.fedex-faq-cardless {
    padding: 44px 0 20px;
}

.faq-title-cardless {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.faq-grid-cardless {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.faq-item-cardless {
    background: transparent;
    border: none;
    padding: 0;
}

.faq-q-cardless {
    font-size: 14.5px;
    font-weight: 700;
    color: #4D148C;
    margin-bottom: 8px;
}

.faq-a-cardless {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
}

/* =========================================
   AUTHENTIC FEDEX FOOTER (OFFICIAL DESIGN)
   ========================================= */
.fedex-footer-official {
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    margin-top: 60px;
    width: 100%;
}

.footer-top-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 28px 44px;
}

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

.footer-col-title {
    color: #4D148C;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 11px;
}

.footer-links-list a {
    color: #333333;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links-list a:hover {
    color: #4D148C;
    text-decoration: underline;
}

.badge-open-link {
    background: #FFF7ED;
    border: 1px solid #FF6200;
    color: #EA580C;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.footer-divider-subtle {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 20px 0;
}

/* Language selector */
.footer-region-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-region-label svg {
    stroke-width: 1.4;
    stroke: #333333;
}

.footer-select-box {
    width: 100%;
    max-width: 260px;
    height: 48px;
    border: 1px solid #CBD5E1;
    border-radius: 2px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 15px;
    color: #333333;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.footer-select-box:hover {
    border-color: #94A3B8;
}

/* Follow FedEx Section */
.footer-follow-row {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.follow-fedex-title {
    color: #4D148C;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-circle-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.social-circle-link:hover {
    border-color: #4D148C;
    color: #4D148C;
    transform: translateY(-1px);
}

/* Bottom Purple Sub-footer */
.footer-sub-purple {
    background: #4D148C;
    padding: 16px 28px;
    width: 100%;
}

.footer-sub-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-copyright {
    color: #FFFFFF;
}

.sub-legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sub-legal-links a {
    color: #FFFFFF;
    text-decoration: none;
}

.sub-legal-links a:hover {
    text-decoration: underline;
}

.sub-legal-sep {
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   RESPONSIVE DESIGN (COMPLETE MOBILE OPTIMIZATION)
   ========================================= */

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    padding: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav-drawer {
    background: #3B0E6D;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
}

.mobile-drawer-link {
    display: block;
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 600;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.mobile-drawer-link:last-child {
    border-bottom: none;
}

.mobile-drawer-link:hover {
    color: #FF6200;
}

/* Tablet & Mobile (< 992px) */
@media (max-width: 992px) {
    .fedex-main-menu {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-cols-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* Standard Mobile (< 768px) */
@media (max-width: 768px) {
    .fedex-nav-container {
        padding: 0 16px;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .fedex-brand-logo {
        font-size: 26px;
    }

    .track-nav-search-wrap {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px 0 0 0 !important;
    }

    /* Hero Section */
    .fedex-hero-official {
        min-height: 440px;
        padding: 42px 16px 50px;
        background-position: center 30%;
    }

    .hero-welcome-title {
        font-size: 32px;
        margin-bottom: 22px;
    }

    .fedex-action-tabs-container {
        max-width: 100%;
        padding-bottom: 28px;
    }

    .fedex-tab-btn {
        height: 84px;
        padding: 8px 4px;
        gap: 6px;
    }

    .fedex-tab-btn.active {
        height: 104px;
        margin-top: -10px;
        margin-bottom: -10px;
    }

    .fedex-tab-icon {
        height: 28px;
    }

    .fedex-tab-icon svg {
        width: 26px;
        height: 26px;
    }

    .fedex-tab-label {
        font-size: 11px;
        letter-spacing: 0;
    }

    .fedex-hero-panel {
        padding: 30px 20px 0;
    }

    .fedex-hero-search-bar {
        height: 64px;
    }

    .fedex-hero-track-input {
        height: 64px;
        font-size: 20px;
        padding: 0 16px;
    }

    .fedex-hero-track-input::placeholder {
        font-size: 19px;
    }

    .fedex-hero-track-btn {
        height: 64px;
        flex: 0 0 170px;
        font-size: 19px;
        gap: 8px;
    }

    /* Promo Banner */
    .fedex-promo-banner {
        padding: 24px 18px;
    }

    .fedex-promo-inner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .promo-left {
        flex-direction: column;
        gap: 12px;
    }

    .promo-title {
        font-size: 18px;
    }

    .promo-subtext {
        font-size: 13.5px;
    }

    .promo-btn-account {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
    }

    /* Cardless Features */
    .fedex-cardless-section {
        padding: 0 16px;
        margin: 32px auto 24px;
    }

    .fedex-features-cardless {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 32px;
    }

    .fedex-faq-cardless {
        padding: 30px 0 10px;
    }

    .faq-title-cardless {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .faq-grid-cardless {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* Tracking Result Page */
    .fedex-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
    }

    .panel-header-left {
        width: 100%;
    }

    .waybill-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .panel-header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .fedex-delivery-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .delivery-location-val {
        font-size: 14px;
    }

    /* Stepper Swipe on Mobile */
    .stepper-container {
        padding: 16px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .stepper-wrapper {
        min-width: 460px;
        padding: 10px 10px 0;
    }

    .shipment-body-grid {
        grid-template-columns: 1fr;
    }

    .shipment-details-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 16px;
    }

    .shipment-timeline-col {
        padding: 20px 16px;
    }

    .timeline-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Footer */
    .footer-top-container {
        padding: 40px 16px 28px;
    }

    .footer-cols-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-follow-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-top: 32px;
    }

    .footer-sub-purple {
        padding: 16px;
    }

    .footer-sub-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Small Mobile (< 540px) */
@media (max-width: 540px) {
    .fedex-action-tabs-container {
        padding-bottom: 22px;
    }

    .fedex-tab-btn {
        height: 70px;
        padding: 6px 2px;
        gap: 4px;
    }

    .fedex-tab-btn.active {
        height: 86px;
        margin-top: -8px;
        margin-bottom: -8px;
    }

    .fedex-tab-icon {
        height: 22px;
    }

    .fedex-tab-icon svg {
        width: 20px;
        height: 20px;
    }

    .fedex-tab-label {
        font-size: 9.5px;
        line-height: 1.15;
    }

    .fedex-hero-panel {
        padding: 22px 12px 0;
    }

    /* Never stack: keep horizontal side-by-side, big and bold */
    .fedex-hero-search-bar {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: 58px;
        width: 100%;
    }

    .fedex-hero-track-input {
        flex: 1;
        min-width: 0;
        height: 58px;
        padding: 0 14px;
        font-size: 17px;
        text-align: left;
        border: 1px solid #757575;
        border-right: none;
        border-radius: 0;
    }

    .fedex-hero-track-input::placeholder {
        font-size: 16px;
        font-style: italic;
        letter-spacing: 0.8px;
    }

    .fedex-hero-track-btn {
        flex: 0 0 115px;
        height: 58px;
        font-size: 16px;
        font-weight: 900;
        border: 1px solid #FF6200;
        border-radius: 0;
        padding: 0 6px;
        gap: 6px;
        justify-content: center;
    }

    .fedex-hero-track-btn i {
        font-size: 14px;
    }

    .timeline-item {
        padding-left: 28px;
    }

    .timeline-dot {
        left: -1px;
        width: 13px;
        height: 13px;
    }
}

