/* Order Tracking Styles */

.order-track-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.order-track-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.order-track-title {
    text-align: center;
    margin-bottom: 50px;
}

.order-track-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.order-track-title p {
    font-size: 16px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.order-track-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-track {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-track:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-track:active {
    transform: translateY(0);
}

/* Status indicators */
.status-delivered { color: #10b981; background: #ecfdf5; }
.status-in-transit { color: #3b82f6; background: #eff6ff; }
.status-processing { color: #f59e0b; background: #fef3c7; }
.status-out-for-delivery { color: #f59e0b; background: #fef3c7; }

/* Tracking timeline animations */
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.timeline-dot-active {
    animation: pulse-dot 2s infinite;
}

.order-info {
    display: none;
}

.tracking-instructions {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.tracking-instructions h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.tracking-instructions ul {
    list-style-type: none;
    padding: 0;
}

.tracking-instructions ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.tracking-instructions ul li:before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: #d4af37;
    font-size: 12px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.modal-btn {
    background-color: #d4af37;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    background-color: #c19b2f;
}

/* Responsive styles */
@media (max-width: 768px) {
    .order-track-form {
        padding: 25px;
    }

    .order-track-title h1 {
        font-size: 28px;
    }

    .tracking-instructions {
        padding: 20px;
    }

    .btn-track {
        width: 100%;
        padding: 18px;
        font-size: 18px;
    }

    .form-group input {
        font-size: 18px; /* Prevent zoom on iOS */
    }
}