/* order.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #004e89;
    --accent: #00a896;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 107, 53, 0.1);
    transform: translateY(-3px);
}

.btn-nav {
    background-color: var(--primary);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-nav.active {
    background-color: var(--primary-dark);
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

.btn-next, .btn-prev, .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-prev {
    background-color: transparent;
    color: var(--gray);
    border: none;
    padding: 10px 0;
}

.btn-prev:hover {
    color: var(--primary);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Order Header */
.order-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #0066a8 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.order-header h1 {
    margin-bottom: 10px;
}

.order-header p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.progress-steps {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step.active::after {
    background-color: var(--primary);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    z-index: 2;
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary);
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.2);
}

.step-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Order Form Section */
.order-container {
    display: flex;
    gap: 40px;
}

.order-form-column {
    flex: 2;
}

.order-summary-column {
    flex: 1;
}

/* Form Steps */
.form-step {
    display: none;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-step h2 i {
    color: var(--primary);
}

.form-step > p {
    color: var(--gray);
    margin-bottom: 30px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input, .radio-label input {
    width: auto;
    margin-top: 5px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
}

/* Restaurant Cards */
.restaurant-selection {
    margin-bottom: 30px;
}

.restaurant-selection h3 {
    margin-bottom: 20px;
    color: var(--secondary);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.restaurant-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.restaurant-card:hover {
    border-color: var(--primary);
}

.restaurant-info h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.restaurant-info h4 i {
    color: var(--primary);
}

.restaurant-location, .restaurant-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.restaurant-rating i {
    color: #ffc107;
}

.restaurant-rating span {
    margin-left: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Menu Items */
.menu-items {
    margin-top: 20px;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-details h5 {
    margin-bottom: 5px;
    color: var(--dark);
}

.item-details p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.quantity-btn:hover {
    background-color: var(--primary);
    color: white;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    padding: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.quantity-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Order Summary */
.order-summary {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-summary h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--light-gray);
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
    border-bottom: none;
    padding-top: 10px;
    border-top: 2px solid var(--light-gray);
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-option {
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option.active {
    border-color: var(--primary);
    background-color: rgba(255, 107, 53, 0.05);
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option i {
    font-size: 2rem;
    color: var(--gray);
}

.payment-option.active i {
    color: var(--primary);
}

.payment-option span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Summary Column */
.summary-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.summary-card h3 {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.summary-card h3 i {
    color: var(--primary);
}

/* Route Map */
.route-map {
    margin-bottom: 25px;
}

.map-container {
    background-color: #f0f7ff;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    position: relative;
}

.route-line {
    position: relative;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--primary);
    z-index: 1;
}

.route-point, .route-stop {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
}

.route-point i, .route-stop i {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 3px solid var(--primary);
    color: var(--primary);
    font-size: 1.2rem;
}

.route-stop i {
    border-color: var(--accent);
    color: var(--accent);
}

.route-point span, .route-stop span {
    font-weight: 600;
    font-size: 0.85rem;
}

.route-stop small {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 3px;
}

/* Route Details */
.route-details {
    margin-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 30px;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

.detail-value {
    display: block;
    font-weight: 700;
    color: var(--dark);
}

/* Info List */
.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.info-list li i {
    color: var(--success);
    margin-top: 3px;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--light-gray);
}

.help-link:last-child {
    border-bottom: none;
}

.help-link:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .order-container {
        flex-direction: column;
    }
    
    .order-form-column, .order-summary-column {
        width: 100%;
    }
    
    .payment-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .progress-steps .step-text {
        font-size: 0.8rem;
    }
    
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .route-line {
        height: 150px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .route-line::before {
        display: none;
    }
    
    .route-point, .route-stop {
        margin: 10px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .order-header {
        padding: 30px 0;
    }
    
    .form-step {
        padding: 20px;
    }
    
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .item-quantity {
        align-self: flex-end;
    }
}