/* Yumfy Frontend Order Form Styles */

.yumfy-frontend-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.yumfy-frontend-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.yumfy-frontend-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
}

.yumfy-frontend-header p {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

/* Success Message */
.yumfy-success-message {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.success-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.yumfy-success-message h2 {
    color: #2ecc71;
    margin: 0 0 20px 0;
    font-size: 32px;
}

.yumfy-success-message p {
    font-size: 18px;
    margin: 10px 0;
    color: #555;
}

/* Form */
.yumfy-frontend-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.yumfy-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.yumfy-form-section:last-child {
    border-bottom: none;
}

.yumfy-form-section h2 {
    color: #ff6b35;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.yumfy-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.yumfy-form-group {
    margin-bottom: 0;
}

.yumfy-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.yumfy-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.yumfy-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* Selected Summary */
.yumfy-selected-summary {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0cc 100%);
    border-left: 5px solid #ff6b35;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.yumfy-selected-summary h3 {
    color: #ff6b35;
    margin: 0 0 15px 0;
    font-size: 20px;
}

#selected-items-list {
    margin-bottom: 15px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid #ff6b35;
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
}

/* Menu Categories */
.yumfy-menu-category {
    margin-bottom: 30px;
}

.yumfy-menu-category h3 {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

.yumfy-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.yumfy-menu-item {
    position: relative;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.yumfy-menu-item:hover {
    background: white;
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.yumfy-menu-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.yumfy-menu-item input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0cc 100%);
    border-color: #ff6b35;
}

.yumfy-menu-item input[type="checkbox"]:checked + label .item-name {
    color: #ff6b35;
}

.yumfy-menu-item input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.yumfy-menu-item label {
    display: block;
    padding: 18px;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s;
}

.item-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    padding-right: 40px;
}

.item-price {
    font-size: 20px;
    color: #ff6b35;
    font-weight: 700;
}

/* Order Total */
.yumfy-order-total {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
}

.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.total-amount {
    color: #ff6b35;
    font-size: 40px;
}

/* Buttons */
.yumfy-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.yumfy-btn {
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.yumfy-btn-large {
    flex: 1;
    min-width: 200px;
}

.yumfy-btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.yumfy-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.yumfy-btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.yumfy-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .yumfy-frontend-header h1 {
        font-size: 28px;
    }
    
    .yumfy-frontend-header p {
        font-size: 16px;
    }
    
    .yumfy-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .yumfy-form-grid {
        grid-template-columns: 1fr;
    }
    
    .total-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .yumfy-form-actions {
        flex-direction: column;
    }
    
    .yumfy-btn-large {
        width: 100%;
    }
}

/* Loading State */
.yumfy-loading {
    opacity: 0.6;
    pointer-events: none;
}

.yumfy-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}