/* Order Form Styles for TastyBites */

/* Order Form Wrapper */
.order-form-wrapper {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Order Form */
.order-form {
    padding: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Form Sections */
.form-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.form-section h4 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-section h4 i {
    color: var(--primary-color);
}

/* Form Labels */
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.required {
    color: #ff4757;
}

/* Form Controls */
.form-control, .form-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

/* Special Requests */
.special-requests {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-check-inline {
    margin-right: 20px;
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #555;
}

/* Payment Methods */
.payment-methods {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-check {
    margin-bottom: 10px;
    padding-left: 35px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-left: -35px;
    margin-top: 3px;
}

.form-check-label {
    display: flex;
    align-items: center;
}

.form-check-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Credit Card Details */
.credit-card-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* Order Summary */
.order-summary {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.summary-item span:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.summary-item span:last-child {
    color: #666;
    max-width: 60%;
    text-align: right;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

/* Terms and Conditions */
.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Form Buttons */
.btn-outline-secondary {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Form Steps Indicator (Optional) */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-steps:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #eee;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    margin: 0 auto 10px;
    transition: all 0.3s;
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design for Order Form */
@media (max-width: 992px) {
    .order-form {
        padding: 30px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .special-requests .form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .order-form {
        padding: 20px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-section h4 {
        font-size: 1.2rem;
    }
    
    .form-check {
        padding-left: 30px;
    }
    
    .form-check-input {
        width: 18px;
        height: 18px;
        margin-left: -30px;
    }
}

@media (max-width: 576px) {
    .order-form-wrapper {
        border-radius: 10px;
    }
    
    .order-form {
        padding: 15px;
    }
    
    .form-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .d-grid.d-md-flex {
        flex-direction: column;
    }
    
    .btn-outline-secondary {
        margin-bottom: 10px;
        margin-right: 0 !important;
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
    }
}