/* ========================================================= CHOOKS-TO-GO — TRACK ORDER CSS ========================================================= CUSTOMER ORDER TRACKING PAGE Matches: track_order.php Includes styling for: - Page background - Main container - Back to Home button - Page header - Error messages - Tracking form - Form inputs - Track Order button - Order card - Order header - Order status - Customer information - Order items - Order total - Payment notes - Update Order button - Locked order message - Responsive mobile layout ========================================================= */


/* ========================================================= GLOBAL RESET ========================================================= */

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


/* ========================================================= BODY ========================================================= */

body {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #fff8e1 0%,
            #ffffff 50%,
            #fff3e0 100%
        );

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    color: #333;

    line-height: 1.6;

    padding: 30px 15px;
}


/* ========================================================= MAIN CONTAINER ========================================================= */

.track-container {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;
}


/* ========================================================= BACK TO HOME BUTTON ========================================================= */

.back-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-bottom: 20px;

    padding: 10px 17px;

    background: #6c757d;

    color: #ffffff;

    text-decoration: none;

    border: none;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.4;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.back-button:hover {
    background: #5a6268;

    color: #ffffff;

    transform: translateX(-2px);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.16);
}


.back-button:active {
    transform: translateX(0);
}


.back-button:focus {
    outline: 3px solid rgba(108, 117, 125, 0.25);

    outline-offset: 2px;
}


.back-button i {
    font-size: 14px;
}


/* ========================================================= PAGE HEADER ========================================================= */

.page-header {
    margin-bottom: 25px;

    padding: 24px 25px;

    background: #b71c1c;

    color: #ffffff;

    border-radius: 12px;

    text-align: center;

    box-shadow:
        0 5px 18px rgba(183, 28, 28, 0.20);
}


.page-header h1 {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin: 0;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.3;
}


.page-header h1 i {
    font-size: 25px;
}


/* ========================================================= ERROR MESSAGE ========================================================= */

.error-message {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;

    padding: 14px 16px;

    background: #fdecec;

    color: #b71c1c;

    border: 1px solid #f3b6b6;

    border-left: 5px solid #b71c1c;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 500;

    line-height: 1.5;
}


.error-message i {
    flex-shrink: 0;

    margin-top: 3px;

    font-size: 17px;
}


/* ========================================================= TRACKING FORM ========================================================= */

.track-form {
    width: 100%;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08);
}


/* ========================================================= FORM GROUP ========================================================= */

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


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


/* ========================================================= FORM LABEL ========================================================= */

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #333333;

    font-size: 14px;

    font-weight: 600;
}


/* ========================================================= TEXT INPUT ========================================================= */

.form-group input,
.form-group select {
    display: block;

    width: 100%;

    min-height: 46px;

    padding: 11px 13px;

    background: #ffffff;

    color: #333333;

    border: 1px solid #cccccc;

    border-radius: 7px;

    outline: none;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input::placeholder {
    color: #999999;
}


.form-group input:hover,
.form-group select:hover {
    border-color: #aaaaaa;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #b71c1c;

    box-shadow:
        0 0 0 3px rgba(183, 28, 28, 0.12);
}


/* ========================================================= NUMBER INPUT ========================================================= */

.form-group input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}


.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}


/* ========================================================= SELECT ========================================================= */

.form-group select {
    cursor: pointer;

    appearance: auto;
}


/* ========================================================= TRACK ORDER BUTTON ========================================================= */

.track-button {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    width: 100%;

    min-height: 48px;

    padding: 12px 18px;

    background: #b71c1c;

    color: #ffffff;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 15px;

    font-weight: 600;

    box-shadow:
        0 4px 10px rgba(183, 28, 28, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.track-button:hover:not(:disabled) {
    background: #8f1515;

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px rgba(183, 28, 28, 0.25);
}


.track-button:active:not(:disabled) {
    transform: translateY(0);
}


.track-button:focus {
    outline: 3px solid rgba(183, 28, 28, 0.20);

    outline-offset: 2px;
}


.track-button:disabled {
    background: #aaaaaa;

    color: #eeeeee;

    cursor: not-allowed;

    box-shadow: none;
}


/* ========================================================= ORDER CARD ========================================================= */

.order-card {
    width: 100%;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08);
}


/* ========================================================= ORDER HEADER ========================================================= */

.order-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding-bottom: 18px;

    margin-bottom: 20px;

    border-bottom: 1px solid #eeeeee;
}


.order-header h2 {
    margin: 0;

    color: #b71c1c;

    font-size: 23px;

    font-weight: 700;

    line-height: 1.3;
}


/* ========================================================= ORDER STATUS ========================================================= */

.order-status {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 32px;

    padding: 6px 12px;

    background: #fff3cd;

    color: #856404;

    border: 1px solid #ffe69c;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;
}


/* ========================================================= TRACK ANOTHER ORDER ========================================================= */

.track-another-form {
    width: 100%;
    margin: 0 0 20px;
}

.track-another-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    background: #ffffff;
    color: #b71c1c;
    border: 1px solid #b71c1c;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 9px rgba(183, 28, 28, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.track-another-button:hover {
    background: #b71c1c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(183, 28, 28, 0.18);
}

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

.track-another-button:focus-visible {
    outline: 3px solid rgba(183, 28, 28, 0.20);
    outline-offset: 2px;
}

.track-another-button i {
    font-size: 14px;
}

/* ========================================================= ORDER INFORMATION ========================================================= */

.order-information {
    display: flex;

    flex-direction: column;

    gap: 0;

    margin-bottom: 25px;
}


/* ========================================================= INFORMATION ROW ========================================================= */

.info-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    min-height: 48px;

    padding: 10px 0;

    border-bottom: 1px solid #eeeeee;
}


.info-row:last-child {
    border-bottom: none;
}


.info-row span {
    color: #777777;

    font-size: 13px;

    font-weight: 500;
}


.info-row strong {
    max-width: 60%;

    color: #333333;

    font-size: 14px;

    font-weight: 600;

    text-align: right;

    word-break: break-word;
}


/* ========================================================= ORDER ITEMS ========================================================= */

.order-items {
    margin-top: 10px;

    padding-top: 5px;
}


.order-items h3 {
    margin-bottom: 14px;

    color: #333333;

    font-size: 17px;

    font-weight: 700;
}


/* ========================================================= INDIVIDUAL ORDER ITEM ========================================================= */

.order-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid #eeeeee;
}


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


.order-item > div {
    display: flex;

    flex-direction: column;

    min-width: 0;

    gap: 3px;
}


.order-item strong {
    color: #333333;

    font-size: 14px;

    font-weight: 600;

    word-break: break-word;
}


.order-item span {
    color: #777777;

    font-size: 12px;
}


.order-item > strong {
    flex-shrink: 0;

    color: #b71c1c;

    font-size: 14px;

    white-space: nowrap;
}


/* ========================================================= ORDER TOTAL ========================================================= */

.order-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 15px;

    padding: 17px 0;

    border-top: 2px solid #b71c1c;
}


.order-total span {
    color: #333333;

    font-size: 16px;

    font-weight: 600;
}


.order-total strong {
    color: #b71c1c;

    font-size: 22px;

    font-weight: 700;

    white-space: nowrap;
}


/* ========================================================= PAYMENT INFORMATION NOTE ========================================================= */

.payment-note {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 18px;

    padding: 15px;

    background: #fff8e1;

    color: #6d5710;

    border: 1px solid #ffe082;

    border-left: 4px solid #ffc107;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.6;
}


.payment-note i {
    flex-shrink: 0;

    margin-top: 3px;

    color: #d99a00;

    font-size: 16px;
}


.payment-note span {
    min-width: 0;
}


.payment-note strong {
    color: #5d4700;

    font-weight: 700;
}


/* ========================================================= ORDER ACTIONS ========================================================= */

.order-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 22px;
}


/* ========================================================= UPDATE ORDER BUTTON ========================================================= */

.update-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 46px;

    padding: 11px 20px;

    background: #b71c1c;

    color: #ffffff;

    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    box-shadow:
        0 4px 10px rgba(183, 28, 28, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.update-button:hover {
    background: #8f1515;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px rgba(183, 28, 28, 0.25);
}


.update-button:active {
    transform: translateY(0);
}


.update-button:focus {
    outline: 3px solid rgba(183, 28, 28, 0.20);

    outline-offset: 2px;
}


/* ========================================================= LOCKED ORDER MESSAGE ========================================================= */

.locked-message {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-top: 22px;

    padding: 13px 15px;

    background: #f5f5f5;

    color: #777777;

    border: 1px solid #dddddd;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 500;

    text-align: center;
}


.locked-message i {
    color: #777777;

    font-size: 15px;
}


/* ========================================================= ACCESSIBILITY ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(183, 28, 28, 0.25);

    outline-offset: 2px;
}


/* ========================================================= TABLET ========================================================= */

@media (max-width: 768px) {

    body {
        padding: 20px 12px;
    }


    .track-container {
        max-width: 100%;
    }


    .page-header {
        padding: 21px 18px;

        margin-bottom: 20px;
    }


    .page-header h1 {
        font-size: 23px;
    }


    .page-header h1 i {
        font-size: 21px;
    }


    .track-form,
    .order-card {
        padding: 21px;
    }


    .order-header h2 {
        font-size: 21px;
    }


    .order-total strong {
        font-size: 20px;
    }
}


/* ========================================================= MOBILE ========================================================= */

@media (max-width: 576px) {

    body {
        padding: 15px 10px;
    }


    /* ----------------------------------------------------- BACK BUTTON ----------------------------------------------------- */

    .back-button {
        width: 100%;

        margin-bottom: 15px;

        padding: 11px 15px;

        font-size: 13px;
    }


    /* ----------------------------------------------------- HEADER ----------------------------------------------------- */

    .page-header {
        padding: 18px 15px;

        border-radius: 10px;
    }


    .page-header h1 {
        flex-direction: column;

        gap: 5px;

        font-size: 21px;
    }


    .page-header h1 i {
        font-size: 23px;
    }


    /* ----------------------------------------------------- ERROR ----------------------------------------------------- */

    .error-message {
        padding: 12px;

        font-size: 12px;
    }


    /* ----------------------------------------------------- FORM ----------------------------------------------------- */

    .track-form {
        padding: 18px 15px;

        border-radius: 10px;
    }


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


    .form-group label {
        font-size: 13px;
    }


    .form-group input,
    .form-group select {
        min-height: 45px;

        font-size: 13px;
    }


    .track-button {
        min-height: 46px;

        font-size: 14px;
    }


    /* ----------------------------------------------------- ORDER CARD ----------------------------------------------------- */

    .order-card {
        padding: 17px 15px;

        border-radius: 10px;
    }


    /* ----------------------------------------------------- ORDER HEADER ----------------------------------------------------- */

    .order-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;

        padding-bottom: 15px;

        margin-bottom: 15px;
    }


    .order-header h2 {
        font-size: 20px;
    }


    .order-status {
        min-height: 30px;

        padding: 5px 10px;

        font-size: 11px;
    }


    /* ----------------------------------------------------- INFORMATION ROWS ----------------------------------------------------- */

    .info-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 3px;

        padding: 10px 0;
    }


    .info-row span {
        font-size: 12px;
    }


    .info-row strong {
        max-width: 100%;

        font-size: 13px;

        text-align: left;
    }


    /* ----------------------------------------------------- ORDER ITEMS ----------------------------------------------------- */

    .order-items h3 {
        font-size: 16px;
    }


    .order-item {
        align-items: flex-start;

        gap: 10px;
    }


    .order-item strong {
        font-size: 13px;
    }


    .order-item span {
        font-size: 11px;
    }


    /* ----------------------------------------------------- TOTAL ----------------------------------------------------- */

    .order-total {
        margin-top: 12px;

        padding: 15px 0;
    }


    .order-total span {
        font-size: 14px;
    }


    .order-total strong {
        font-size: 19px;
    }


    /* ----------------------------------------------------- PAYMENT NOTE ----------------------------------------------------- */

    .payment-note {
        gap: 9px;

        padding: 12px;

        font-size: 11px;

        line-height: 1.55;
    }


    .payment-note i {
        font-size: 14px;
    }


    /* ----------------------------------------------------- TRACK ANOTHER ORDER ----------------------------------------------------- */

    .track-another-form {
        margin-bottom: 16px;
    }

    .track-another-button {
        min-height: 45px;
        padding: 10px 14px;
        font-size: 13px;
    }

    /* ----------------------------------------------------- UPDATE BUTTON ----------------------------------------------------- */

    .order-actions {
        justify-content: stretch;

        margin-top: 18px;
    }


    .update-button {
        width: 100%;

        min-height: 46px;

        font-size: 13px;
    }


    /* ----------------------------------------------------- LOCKED MESSAGE ----------------------------------------------------- */

    .locked-message {
        padding: 11px;

        font-size: 11px;
    }
}


/* ========================================================= VERY SMALL PHONES ========================================================= */

@media (max-width: 360px) {

    body {
        padding: 10px 8px;
    }


    .page-header h1 {
        font-size: 19px;
    }


    .track-another-button {
        min-height: 44px;
        font-size: 12px;
    }

    .track-form,
    .order-card {
        padding: 15px 12px;
    }


    .order-total strong {
        font-size: 17px;
    }


    .payment-note {
        font-size: 10px;
    }
}


/* ========================================================= REDUCED MOTION ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }
}