/* Order Form Module CSS */
/* Base styling */
.order-form-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Wave Animation */
.order-form-wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: -1;
}

.order-form-wave {
    position: relative;
    height: 300px;
    background: linear-gradient(60deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: skewY(-3deg);
    transform-origin: top left;
}

.order-form-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.order-form-logo-container {
    text-align: center;
    margin: 0 auto 30px;
    position: relative;
}

.order-form-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.order-form-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(78, 61, 40, 0.1);
    animation: order-form-fadeInUp 1s ease;
    padding: 24px; /* add inner horizontal/vertical spacing */
}

.order-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.order-form-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin: 0;
    font-weight: var(--font-weight-bold);
    margin-bottom: 2rem;
}

.order-form-group {
    margin-bottom: 10px;
}

.order-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    text-align: right;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
}

.order-form-input,
.order-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: var(--font-family-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
    box-sizing: border-box;
    color: var(--text-color);
}

.order-form-input:focus,
.order-form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 61, 40, 0.1);
    outline: none;
}

.order-form-menu-container {
    margin-top: 2rem;
    direction: rtl;
}

.order-form-menu-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    width: 100%;
    text-align: right;
    direction: rtl;
}

.order-form-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    direction: rtl !important;
}

.order-form-date-section {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.order-form-date-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-form-food-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: white;
    transition: background-color 0.2s;
    cursor: pointer;
    justify-content: space-between;
}

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

.order-form-food-item:hover {
    background-color: #f9f9f9;
}

.order-form-food-checkbox {
    margin-left: 0;
    margin-right: 15px;
    transform: scale(1.5);
    cursor: pointer;
    order: 1;
}

.order-form-food-details {
    flex: 1;
    margin: 0 15px;
    order: 2;
    text-align: right;
}

.order-form-food-name {
    font-weight: var(--font-weight-bold);
    font-size: 17px;
    margin-bottom: 5px;
}

.order-form-food-price {
    color: #0a4a28;
    font-weight: var(--font-weight-bold);
}

.order-form-food-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
    background-color: #f5f5f5;
    order: 3;
    margin-left: var(--space-2xl);
}

.order-form-food-more {
    margin-right: 0;
    margin-left: 10px;
    order: 4;
}

.order-form-details-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.order-form-details-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.order-form-quantity-control {
    display: flex;
    align-items: center;

    order: 3;
}

.order-form-quantity-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-form-quantity-btn:hover {
    background-color: var(--primary-color);
}

.order-form-quantity-input {
    width: 35px;
    height: 25px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.order-form-quantity-input::-webkit-inner-spin-button, 
.order-form-quantity-input::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

.order-form-quantity-input {
    -moz-appearance: textfield;
}

.order-form-submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-family-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-form-submit-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 61, 40, 0.3);
}

.order-form-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e74c3c;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    direction: rtl;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.order-form-notification.show {
    opacity: 1;
}

.order-form-summary {
    background-color: var(--tertiary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 10px rgba(78, 61, 40, 0.1);
}

.order-form-summary h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.order-form-summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-form-summary-content p {
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.order-form-flash-messages {
    margin-bottom: 1.5rem;
}

.order-form-flash-message {
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: var(--font-weight-bold);
    text-align: right;
}

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

.order-form-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: order-form-modalopen 0.3s;
}

.order-form-modal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.order-form-modal-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.order-form-close-modal {
    color: #999;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.order-form-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.order-form-modal-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.order-form-modal-description {
    width: 100%;
    text-align: right;
    line-height: 1.6;
}

.order-form-modal-price {
    margin-top: 15px;
    color: #0a4a28;
    font-weight: var(--font-weight-bold);
    font-size: 18px;
}

@keyframes order-form-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes order-form-modalopen {
    from {opacity: 0; transform: translateY(-20px);} 
    to {opacity: 1; transform: translateY(0);} 
}

/* Responsive styles */
@media (max-width: 768px) {
    .order-form-content {
        padding: 15px;
    }
    
    .order-form-header h1 {
        font-size: 1.5rem;
    }
    
    .order-form-food-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
        flex-direction: row-reverse;
    }
    
    .order-form-food-checkbox {
        order: 1;
        margin-right: 0;
    }
    
    .order-form-food-details {
        order: 2;
        flex: 1;
        text-align: right;
    }
    
    .order-form-food-image {
        width: 70px;
        height: 70px;
        order: 3;
        margin-right: 0;
    }
    
    .order-form-food-more {
        order: 4;
        margin: 10px 0 0 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .order-form-details-link {
        width: 100%;
        text-align: center;
        padding: 8px;
    }
}

@media (min-width: 768px) {
    .order-form-quantity-btn {
        width: 37.5px;
        height: 37.5px;
        font-size: 18px;
    }
    
    .order-form-quantity-input {
        width: 52.5px;
        height: 37.5px;
        font-size: 16px;
    }
}

/* Success page styles */
.order-form-success-container {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(78, 61, 40, 0.1);
    animation: order-form-fadeInUp 1s ease;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.order-form-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.order-form-success-icon {
    width: 80px;
    height: 80px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    margin-bottom: 1rem;
    animation: order-form-scaleIn 0.5s ease;
}

.order-form-success-message h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.order-form-success-message p {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 0;
}

.order-form-new-order-button {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 1rem;
    display: inline-block;
}

.order-form-new-order-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 61, 40, 0.3);
}

@keyframes order-form-scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
} 