/* Updated to match Dior luxury homepage design with orange accents */
.track-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
    min-height: 70vh;
    position: relative;
}

.track-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.track-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.track-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff9966 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

.track-icon i {
    font-size: 42px;
    color: white;
}

.track-container h1 {
    text-align: center;
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.track-container p {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-bottom: 45px;
    line-height: 1.7;
    font-weight: 300;
}

.alert-error {
    background: #fee;
    color: #c33;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-left: 4px solid #c33;
    font-size: 14px;
}

.track-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid #e8e8e8;
    border-radius: 0;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

.form-group i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff8c42;
    font-size: 16px;
    margin-top: 12px;
}

.track-btn {
    padding: 20px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff9966 100%);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.track-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.track-btn span,
.track-btn i {
    position: relative;
    z-index: 1;
}

.track-btn:hover::before {
    left: 0;
}

.track-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

.track-btn:active {
    transform: translateY(0);
}

.track-btn.loading {
    background: #95a5a6;
    cursor: not-allowed;
}

.track-btn.loading::before {
    display: none;
}

.divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.divider span {
    background: white;
    padding: 0 25px;
    color: #999;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-orders {
    background: #fdfbf7;
    border-radius: 0;
    padding: 30px;
    margin-top: 35px;
}

.recent-orders h3 {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.recent-orders h3 i {
    color: #ff8c42;
    font-size: 16px;
}

.recent-order-item {
    background: white;
    padding: 18px 20px;
    border-radius: 0;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recent-order-item:hover {
    border-color: #ff8c42;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.15);
}

.recent-order-item:last-child {
    margin-bottom: 0;
}

.order-info span {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.order-info small {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.order-status {
    padding: 8px 16px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* NEW – جديد */
.order-status.new {
    background: #cff4fc;
    color: #055160;
}

/* CONFIRMED – تم التأكيد */
.order-status.confirmed {
    background: #cfe2ff;
    color: #084298;
}

/* PROCESSING – قيد المعالجة */
.order-status.processing {
    background: #fff3cd;
    color: #664d03;
}

/* SHIPPED – تم الشحن */
.order-status.shipped {
    background: #e2d9f3;
    color: #3d0a91;
}

/* DELIVERED – تم التسليم */
.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

/* CANCELLED – ملغي */
.order-status.cancelled,
.order-status.canceled {
    background: #f8d7da;
    color: #721c24;
}

/* RETURNED – مُعاد */
.order-status.returned {
    background: #e2e3e5;
    color: #41464b;
}

/* PENDING – قيد الانتظار (للتوافقية) */
.order-status.pending {
    background: #ffe5d0;
    color: #663c00;
}

/* COMPLETED – مكتمل (للتوافقية) */
.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.help-text {
    text-align: center;
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid #e8e8e8;
}

.help-text p {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.help-text a {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.help-text a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .track-container {
        padding: 40px 30px;
    }

    .track-container h1 {
        font-size: 22px;
    }

    .track-icon {
        width: 75px;
        height: 75px;
    }

    .track-icon i {
        font-size: 36px;
    }
}