/* ================================
   Tracking Page
   ================================ */

:root {
    --primary-color: #F1A128;
    --secondary-color: #053c23;
    --text-color: #1c2734;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --accent: #F1A128;
}

.tracking-page {
    overflow-x: hidden;
    background: var(--light-bg);
    color: var(--text-color);
}

/* ========================================
   Hero Banner Section
   ======================================== */
.tracking-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 400px;
    background-image: url("/assets/knowledge/global-logistics-transportation-network.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.tracking-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(5, 60, 35, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(255, 122, 0, 0.25) 100%
    );
    z-index: 1;
}

.tracking-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.tracking-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    font-family: "Aptos", sans-serif;
}

.tracking-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
    font-family: "Aptos", sans-serif;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tracking forms */
.tracking-section {
    background: var(--light-bg);
}

.tracking-container {
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px 100px;
    max-width: 100%;
}

/* desktop */
@media (min-width: 1200px) {
    .tracking-container {
        max-width: 1280px;
    }
}

/* large desktop */
@media (min-width: 1400px) {
    .tracking-container {
        max-width: 1440px;
    }
}

/* 2K */
@media (min-width: 1600px) {
    .tracking-container {
        max-width: 1600px;
    }
}

/* 4K */
@media (min-width: 2000px) {
    .tracking-container {
        max-width: 1800px;
    }
}

.tracking-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.tracking-eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.tracking-title {
    margin: 0 0 12px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-color);
    font-family: "Aptos", sans-serif;
}

.tracking-description {
    margin: 0;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.carrier-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.carrier-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carrier-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.carrier-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.carrier-logo {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-width: 150px;
}

.carrier-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carrier-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.carrier-short {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.carrier-full {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.carrier-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carrier-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
}

.carrier-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.carrier-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carrier-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 60, 35, 0.12);
}

/* ========================================
   CARRIER TRACKING Button
   ======================================== */
.carrier-cta {
    text-align: center;
    margin-top: 40px;
}

.carrier-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f1a 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: "Aptos", sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.carrier-cta-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.carrier-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 122, 0, 0.4);
    background: linear-gradient(135deg, #ff8f1a 0%, var(--primary-color) 100%);
}

.carrier-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.carrier-cta-button:hover i {
    transform: translateX(5px);
}

.carrier-cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.carrier-cta-button span {
    position: relative;
    z-index: 1;
}

.carrier-hint {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .tracking-hero {
        height: 360px;
        background-attachment: scroll;
    }

    .tracking-hero-title {
        font-size: 2.6rem;
    }

    .carrier-brand {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tracking-container {
        padding: 60px 16px 80px;
    }

    .tracking-hero-title {
        font-size: 2.3rem;
    }

    .tracking-hero-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .carrier-card {
        padding: 18px 16px;
    }

    .carrier-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .carrier-button {
        width: 100%;
        justify-content: center;
    }

    .carrier-logo {
        width: 130px;
        height: 130px;
        border-radius: 10px;
        min-width: 120px;
    }
}
