/* Order Page Specific Styles */

.order-container {
    max-width: 900px;
    margin: 100px auto 2rem;
    padding: 0 2rem;
}

.order-header {
    text-align: center;
    margin-bottom: 3rem;
}

.order-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-teal);
}

.order-header p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-purple));
    border-radius: 3px;
    width: 16.66%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-purple));
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--white);
    font-weight: 600;
}

/* Form Steps */
.order-form {
    background: linear-gradient(135deg, var(--dark-teal), var(--light-purple));
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
}

.form-step {
    display: none;
    padding: 3rem;
    min-height: 500px;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.step-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--primary-teal);
}

.step-content > p {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Bag Options */
.bag-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.bag-option {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bag-option:hover {
    border-color: var(--primary-teal);
    background: var(--light-teal);
}

.bag-visual {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bag-option h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.bag-option p {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.bag-weight {
    font-weight: 600;
    color: var(--primary-teal);
}

.bag-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-teal);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.counter-btn:hover {
    background: var(--dark-teal);
    transform: scale(1.1);
}

.counter-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.bag-counter span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    min-width: 30px;
}

.minimum-charge {
    background: var(--warning);
    color: var(--primary-black);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 2rem;
}

.estimate-display {
    background: var(--light-teal);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.estimate-display h4 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.estimate-display h4:last-child {
    margin-bottom: 0;
    font-size: 1.3rem;
    color: var(--primary-teal);
}

/* Oversized Items & Care Options */
.oversized-options,
.care-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: var(--primary-teal);
    background: var(--light-teal);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: var(--white);
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

.option-details h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.option-details p {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.option-details .price {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.9rem;
}

.oversized-total {
    background: var(--light-purple);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.oversized-total h4 {
    color: var(--primary-purple);
    margin: 0;
}

/* Safety Checks */
.safety-warning {
    background: var(--danger);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.safety-warning h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.safety-warning p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.safety-checks .checkbox-option.required {
    border-color: var(--danger);
}

.safety-checks .checkbox-option.required:hover {
    border-color: var(--primary-teal);
}

/* Order Summary */
.order-summary {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary-section {
    margin-bottom: 2rem;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-teal);
    padding-bottom: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-teal);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-teal);
    border-bottom: none;
}

.order-notice {
    background: var(--warning);
    color: var(--primary-black);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Payment Section */
.payment-section {
    background: var(--light-purple);
    border: 2px solid var(--primary-teal);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.payment-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tip-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.tip-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
}

.tip-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tip-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-teal);
    background: var(--white);
    color: var(--primary-teal);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tip-btn:hover,
.tip-btn.active {
    background: var(--primary-teal);
    color: var(--white);
}

.tip-total {
    text-align: center;
    font-weight: 600;
    color: var(--primary-teal);
    margin-top: 1rem;
}

.final-total {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-purple));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.final-total h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: var(--light-gray);
    border-top: 1px solid #ddd;
}

.form-navigation .btn {
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-container {
        margin: 90px auto 2rem;
        padding: 0 1rem;
    }

    .progress-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .form-step {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .bag-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-navigation {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation .btn {
        width: 100%;
    }

    .tip-buttons {
        flex-direction: column;
    }

    .tip-btn {
        width: 100%;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .order-header h1 {
        font-size: 2rem;
    }

    .step-content h2 {
        font-size: 1.5rem;
    }

    .bag-visual {
        font-size: 2.5rem;
    }

    .counter-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .bag-counter span {
        font-size: 1.3rem;
    }

    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step:nth-child(n+3) {
        display: none;
    }
}

/* Animation for form transitions */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.form-step.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}