/* Meal Customizer Frontend Styles - Optimized for Performance & Responsiveness */

/* ============================================================================
   SUB-PROTEIN SELECTION MODAL
   ============================================================================ */
.mc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: mc-fadeIn 0.2s ease;
}

@keyframes mc-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mc-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 12px;
    border-bottom: 1px solid #eee;
}

.mc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.mc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.mc-modal-close:hover {
    color: #333;
}

.mc-modal-body {
    padding: 20px 24px 24px;
}

.mc-modal-body p {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

.mc-sp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mc-sp-option {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.mc-sp-option:hover {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
    transform: translateX(4px);
}

.mc-sp-option:active {
    transform: translateX(2px);
    background: #c8e6c9;
}

/* Sub-protein availability badge on main food cards */
.mc-sub-protein-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 600;
}

/* ============================================================================
   SUB-PROTEIN MODAL — RESPONSIVE
   ============================================================================ */
@media (max-width: 480px) {
    .mc-modal-content {
        width: 96%;
        max-height: 88vh;
        border-radius: 10px;
    }
    .mc-modal-header {
        padding: 14px 16px 10px;
    }
    .mc-modal-header h3 {
        font-size: 15px;
    }
    .mc-modal-body {
        padding: 14px 16px 18px;
    }
    .mc-sp-option {
        padding: 13px 14px;
        font-size: 14px;
    }
    .mc-modal-close {
        font-size: 22px;
    }
}

/* ============================================================================
   DESSERT CARDS STYLING
   ============================================================================ */
.dessert-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
    will-change: transform; /* Performance hint for animations */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.dessert-card:hover {
    box-shadow: 0 8px 24px rgba(171, 207, 54, 0.2);
    transform: translateY(-4px);
}

/* Touch devices - disable hover effects */
@media (hover: none) and (pointer: coarse) {
    .dessert-card:hover {
        transform: none;
    }
}

.dessert-card.selected {
    box-shadow: 0 8px 24px rgba(171, 207, 54, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8fcf0 100%);
    border: 2px solid #abcf36;
}

.dessert-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    will-change: transform; /* Performance optimization */
}

.dessert-card:hover img {
    transform: scale(1.1);
}

.dessert-card h4 {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin: 8px 0 5px 0;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dessert-card .price {
    color: #abcf36;
    font-size: 1.2em;
    font-weight: 700;
    margin: 5px 0;
}

.dessert-card .select-btn {
    margin-top: 8px;
    padding: 8px 16px;
    background: #abcf36;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dessert-card .select-btn:hover {
    background: #8ab928;
    transform: translateY(-2px);
}

.dessert-card.selected .select-btn {
    background: #dc3545;
}

.dessert-card.selected .select-btn:hover {
    background: #485e15;
}

.meal-customizer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.meal-customizer-header {
    text-align: center;
    margin-bottom: 15px;
}

.meal-customizer-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.meal-customizer-header p {
    font-size: 1.1em;
    color: #666;
}

.meal-customizer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.meal-tab {
    padding: 15px 30px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.meal-tab:hover {
    background: #f0f0f0;
}

.meal-tab.active {
    background: #fff;
    border-bottom-color: #2196F3;
    color: #2196F3;
    font-weight: bold;
}

.meal-selection-step {
    margin-bottom: 20px;
}

.meal-selection-step h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
    padding: 5px;
}

.food-item {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.food-item:hover {
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.2);
    transform: translateY(-4px);
}

.food-item.selected {
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f5 100%);
}

.selection-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
    border: 4px solid white;
    z-index: 15;
    animation: badgePop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.food-item-image {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 16px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.food-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 10px;
}

.food-item:hover .food-item-image {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
}

.food-item:hover .food-item-image img {
    transform: scale(1.1);
}

.food-item.selected .food-item-image {
    border-color: #4CAF50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.food-item-name {
    font-weight: 600;
    font-size: 1.05em;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.food-item-price {
    color: #2196F3;
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -0.5px;
}

.food-item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #2196F3;
    background: white;
    color: #2196F3;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn:hover {
    background: #2196F3;
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    color: #333;
    background: #f9f9f9;
}

.combination-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.combination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2196F3, #4CAF50, #FF9800);
}

.combination-card h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.combination-card h3::before {
    content: '🍽️';
    font-size: 1.3em;
}

.combination-items {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.combination-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fafbfc;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.combination-item:hover {
    background: #f0f7ff;
    transform: translateX(4px);
}

.combination-item:last-child {
    margin-bottom: 0;
}

.combination-item-label {
    color: #666;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.combination-item-label::before {
    content: '';
}

.combination-item-value {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1em;
}

.combination-price {
    font-size: 1.5em;
    color: #2196F3;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ebf8 100%);
    border-radius: 10px;
    text-align: center;
    border: 2px solid #2196F3;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.combination-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0) 100%);
    pointer-events: none;
}

.quantity-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quantity-selector label {
    font-weight: 600;
    color: #555;
    font-size: 1.05em;
}

.quantity-selector input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid #2196F3;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #2196F3;
    background: #f0f8ff;
}

.quantity-selector input:focus {
    outline: none;
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.btn-add-combination {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-combination:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.btn-add-combination:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.order-summary {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid #e8e8e8;
    position: relative;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2196F3, #4CAF50, #FF9800);
    border-radius: 16px 16px 0 0;
}

.order-summary h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.order-summary h3::before {
    content: '🛒';
    font-size: 1.4em;
}

.order-items {
    margin-bottom: 25px;
    min-height: 60px;
}

.order-items:empty::before {
    content: 'No items added yet. Create your first combination!';
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #ddd;
    font-size: 1.05em;
}

.order-item {
    background: white;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2196F3;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(6px);
    border-left-color: #4CAF50;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item-name::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    background: #e8f5e9;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
}

.order-item-description {
    font-size: 0.95em;
    color: #666;
    padding-left: 34px;
    line-height: 1.6;
}

.order-item > div:last-child {
    font-size: 1.4em;
    font-weight: 700;
    color: #2196F3;
    padding: 10px 18px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ebf8 100%);
    border-radius: 10px;
    min-width: 95px;
    text-align: center;
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.order-total {
    font-size: 1.9em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
    padding: 20px 25px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.18);
    color: #2196F3;
    border: 3px solid #2196F3;
}

.order-total strong {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total strong::before {
    content: 'Grand Total';
    font-size: 0.6em;
    color: #666;
    font-weight: 500;
}

.btn-checkout {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #1976D2 0%, #0d47a1 100%);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.btn-checkout:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-clear {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(117, 117, 117, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-clear:hover {
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
    box-shadow: 0 6px 16px rgba(117, 117, 117, 0.4);
    transform: translateY(-2px);
}

.btn-clear:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.3);
}

/* Checkout Form Section */
.checkout-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e0e0;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196F3, #4CAF50);
    border-radius: 12px 12px 0 0;
}

.checkout-form-section h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.6em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form-section h3::before {
    content: '📝';
    font-size: 1.3em;
}

.checkout-subtitle {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.checkout-form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group label::before {
    content: '●';
    color: #2196F3;
    font-size: 0.7em;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #2196F3;
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Validation states for inputs */
.form-group input:valid:not(:placeholder-shown) {
    border-color: #4CAF50;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ddd;
}

.form-group input.error,
.form-group input[aria-invalid="true"] {
    border-color: #ddd !important;
    background-color: #fafafa;
}

.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea.error,
.form-group textarea[aria-invalid="true"] {
    border-color: #ddd !important;
    background-color: #fafafa;
}

.form-group input.success {
    border-color: #4CAF50 !important;
}

.form-group input::placeholder {
    color: #aaa;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.btn-submit-order {
    flex: 1;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-order::before {
    content: '✉️';
    font-size: 1.2em;
}

.btn-submit-order:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.btn-submit-order:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-cancel-checkout {
    background: white;
    color: #666;
    padding: 14px 30px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel-checkout:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cancel-checkout:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Modern Order Form Button Styles */
.form-actions-modern {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.btn-submit-order-modern {
    width: 100%;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.25);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit-order-modern::before {
    content: '✉️';
    font-size: 1.3em;
}

.btn-submit-order-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit-order-modern:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.35);
    transform: translateY(-2px);
}

.btn-submit-order-modern:hover::after {
    width: 300px;
    height: 300px;
}

.btn-submit-order-modern:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.btn-cancel-modern {
    background: transparent;
    color: #666;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.25s ease;
    margin-top: 12px;
    float: right;
}

.btn-cancel-modern:hover {
    background: #f8f9fa;
    border-color: #aaa;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-cancel-modern:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
    }
    
    .food-item-image {
        width: 160px;
        height: 160px;
        min-width: 160px;
        min-height: 160px;
    }
    
    .food-item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        padding: 10px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .food-item {
        padding: 12px;
    }
    
    .food-item-image {
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
        margin: 10px auto 10px auto;
        border-radius: 50%;
    }
    
    .food-item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        padding: 8px;
    }
    
    .food-item-name {
        font-size: 0.95em;
        min-height: 2.6em;
        margin-bottom: 6px;
    }
    
    .food-item-price {
        font-size: 1.15em;
        margin-bottom: 4px;
    }
    
    .meal-customizer-tabs {
        flex-wrap: wrap;
    }
    
    .meal-tab {
        flex: 1;
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .meal-customizer-header h1 {
        font-size: 1.8em;
    }
    
    .food-item-quantity {
        gap: 5px;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 1em;
    }
    
    .qty-input {
        width: 35px;
        height: 28px;
        font-size: 0.9em;
    }
    
    .combination-card {
        padding: 20px;
    }
    
    .combination-card h3 {
        font-size: 1.2em;
    }
    
    .combination-item {
        flex-direction: row;
        padding: 15px;
    }
    
    .combination-price {
        font-size: 1.3em;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .order-summary h3 {
        font-size: 1.3em;
    }
    
    .order-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-item > div:last-child {
        align-self: flex-end;
    }
    
    .order-total {
        font-size: 1.4em;
    }
    
    .btn-checkout,
    .btn-clear {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .checkout-form-section {
        padding: 20px;
    }
    
    .checkout-form-section h3 {
        font-size: 1.3em;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-submit-order,
    .btn-cancel-checkout {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ===== NEW SINGLE-PAGE FLOW STYLES ===== */

/* Package Selection Step */
.meal-package-selection {
    animation: fadeIn 0.4s ease;
}

.meal-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin: 25px 0;
}

.meal-package-card {
    background: white;
    border: 3px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.meal-package-card:hover {
    border-color: #2196F3;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.2);
    transform: translateY(-4px);
}

.meal-package-card.selected {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196F3;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
}

.package-meals-count {
    font-size: 3.5em;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 10px;
}

.package-meals-label {
    font-size: 1.2em;
    color: #666;
    font-weight: 500;
}

/* Customization Flow Layout */
.customization-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

.customization-steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Customization Steps */
.customization-step {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 30px;
    animation: slideIn 0.4s ease;
}

.customization-step.hidden {
    display: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2196F3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    flex-shrink: 0;
}

.customization-step#customization-step-confirm .step-number {
    background: #4CAF50;
    font-size: 1.5em;
}

.step-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.step-content {
    margin-top: 20px;
}

/* Combination Preview */
.combination-preview {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.preview-value {
    color: #2196F3;
    font-weight: 600;
}

/* Summary Box (Right Side) */
.customization-summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-header {
    border-bottom: 2px solid #2196F3;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.summary-package-info {
    background: #2196F3;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    display: inline-block;
}

.summary-items {
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.summary-value {
    color: #2196F3;
    font-weight: 600;
    text-align: right;
    flex: 1;
    margin-left: 10px;
    font-size: 0.9em;
}

/* Progress Bar */
.summary-progress {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.progress-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85em;
    color: #666;
    text-align: center;
}

/* Buttons */
.btn-add-meal-combination,
.btn-reset-combination,
.btn-back-packages {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-add-meal-combination {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    margin-bottom: 10px;
}

.btn-add-meal-combination:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.btn-reset-combination {
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
    margin-bottom: 15px;
}

.btn-reset-combination:hover {
    background: #f0f7ff;
}

.btn-back-packages {
    background: white;
    color: #666;
    border: 2px solid #ddd;
    margin-top: 20px;
}

.btn-back-packages:hover {
    border-color: #2196F3;
    color: #2196F3;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Customization Layout */
@media (max-width: 1200px) {
    .customization-layout {
        grid-template-columns: 1fr;
    }
    
    .customization-summary-box {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .meal-packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .customization-step {
        padding: 20px;
    }
    
    .step-header {
        gap: 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .step-title {
        font-size: 1.1em;
    }
}

/* ===== MULTI-STEP WIZARD STYLES ===== */

.wizard-step {
    animation: fadeIn 0.4s ease;
}

.wizard-header {
    text-align: center;
    margin-bottom: 12px;
    margin-top: 0;
}

.wizard-header h1 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.wizard-header p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.wizard-counter {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    color: #2196F3;
    font-weight: 600;
    font-size: 1.1em;
}

/* Step 1: Quantity Cards */
.quantity-cards-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin: 15px auto;
    max-width: 900px;
    padding: 0 10px;
}

.quantity-card {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    font-family: inherit;
    flex: 1;
    min-width: 0;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quantity-card:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.quantity-card.selected {
    background: #f8fcff;
    border-color: #2196F3;
    border-width: 2.5px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
}

.quantity-number {
    font-size: 2.8em;
    font-weight: 700;
    color: #2196F3;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.quantity-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    text-transform: capitalize;
}

/* Step 2: Protein Grid */
.protein-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 12px;
}

.food-item.selected {
    border-color: #4CAF50 !important;
    background: #f1f8f5 !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
}

.price-summary {
    background: #f9f9f9;
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.summary-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 15px;
}

.summary-total {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: right;
    font-size: 1.2em;
    color: #2196F3;
}

/* Step 3: Sides Selection */
.sides-selection-container {
    padding-left: 30px; /* Space for arrow indicators on desktop */
    position: relative;
}

.sides-grid-container {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr 1.5fr;
    gap: 15px;
    align-items: start;
}

.sides-protein-card {
    margin-bottom: 12px;
    position: relative; /* For absolute positioned arrows */
}

/* Repeat Arrow Indicator */
.repeat-arrow-indicator {
    position: absolute;
    color: #2196F3;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

.sides-protein-card h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.sides-protein-card select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sides-protein-card select:hover,
.sides-protein-card select:focus {
    border-color: #2196F3;
    outline: none;
}

/* Step 4: Delivery Days */
.delivery-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.delivery-day-btn {
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.delivery-day-btn:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.delivery-day-btn.selected {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-color: #1976D2;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ============================================================================
   STEP 6: MODERN REVIEW PAGE LAYOUT
   ============================================================================ */

.review-modern-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto;
}

/* Card Base Styles */
.review-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e8e4e0;
    box-shadow: 0 2px 8px rgba(42, 42, 42, 0.06);
    transition: box-shadow 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(42, 42, 42, 0.1);
}

.review-card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-icon {
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Your Information Section - Full Width */
.review-full-width {
    grid-column: 1 / -1;
}

.review-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.review-info-item h4 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9a9a9a;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.review-info-item p {
    font-size: 1.05em;
    color: #2c2c2c;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Meal Package Section */
.review-meal-package {
    grid-column: 2;
    grid-row: 2;
}

.review-package-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-package-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #abcf36 0%, #8ab928 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: white;
}

.review-package-details h4 {
    font-size: 1.15em;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.review-package-details p {
    font-size: 0.95em;
    color: #7a7a7a;
    margin: 0;
}

/* Proteins & Sides Section */
.review-proteins-sides {
    grid-column: 1;
    grid-row: 2 / 4;
}

.review-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-items-list .review-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #faf8f5;
    border-radius: 8px;
    border-left: 3px solid #abcf36;
}

.review-items-list .review-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #abcf36;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    flex-shrink: 0;
    margin-top: 2px;
}

.review-items-list h4 {
    font-size: 0.95em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
}

.review-items-list p {
    font-size: 0.85em;
    color: #7a7a7a;
    margin: 0;
}

/* Delivery Information Section */
.review-delivery-info {
    grid-column: 2;
    grid-row: 3;
}

.review-delivery-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.review-delivery-item:last-child {
    margin-bottom: 0;
}

.review-delivery-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0ebe7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #abcf36;
    font-size: 1.2em;
    flex-shrink: 0;
}

.review-delivery-item h4 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9a9a9a;
    margin: 0 0 2px 0;
    font-weight: 600;
}

.review-delivery-item p {
    font-size: 0.95em;
    color: #2c2c2c;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

.review-repeat-badge {
    color: #abcf36 !important;
    font-weight: 600 !important;
    margin-top: 5px !important;
}

/* Desserts Section */
.review-desserts-section {
    grid-column: 1 / -1;
}

.review-dessert-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.review-dessert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #faf8f5;
    border-radius: 8px;
    border: 1px solid #e8e4e0;
}

/* Total Section */
.review-total-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f9f7f4 0%, #faf8f5 100%);
    border-top: 2px solid #e8e4e0;
}

.review-total-breakdown {
    margin-bottom: 24px;
}

.review-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-total-row label {
    font-size: 1.1em;
    color: #1a1a1a;
    font-weight: 600;
}

.review-total-amount {
    font-size: 1.6em;
    color: #abcf36;
    font-weight: 700;
}

/* Action Buttons */
.review-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.review-btn-secondary,
.review-btn-primary {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.review-btn-secondary {
    background: white;
    color: #7a7a7a;
    border: 2px solid #e8e4e0;
}

.review-btn-secondary:hover {
    background: #f9f7f4;
    border-color: #abcf36;
    color: #abcf36;
}

.review-btn-primary {
    background: #abcf36;
    color: white;
    grid-column: 2;
}

.review-btn-primary:hover {
    background: #8ab928;
    box-shadow: 0 6px 20px rgba(171, 207, 54, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .review-modern-layout {
        grid-template-columns: 1fr;
    }

    .review-full-width,
    .review-meal-package,
    .review-proteins-sides,
    .review-delivery-info,
    .review-desserts-section,
    .review-total-section {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .review-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .review-card {
        padding: 20px;
    }

    .review-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-action-buttons {
        grid-template-columns: 1fr;
    }

    .review-btn-primary {
        grid-column: 1;
    }

    .review-card-title {
        font-size: 1.15em;
    }
}

/* Wizard Actions Buttons */
.wizard-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 2px solid #eee;
}

.btn-wizard-back,
.btn-wizard-continue,
.btn-wizard-save {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-wizard-back {
    background: white;
    color: #666;
    border: 2px solid #ddd;
}

.btn-wizard-back:hover {
    border-color: #2196F3;
    color: #2196F3;
}

.btn-wizard-continue,
.btn-wizard-save {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    margin-left: auto;
}

.btn-wizard-continue:hover,
.btn-wizard-save:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
}

.btn-wizard-save {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-wizard-save:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .wizard-actions {
        flex-wrap: wrap;
    }
    
    .btn-wizard-continue,
    .btn-wizard-save {
        margin-left: auto;
        width: auto;
    }
}

@media (max-width: 768px) {
    .meal-customizer-container {
        padding-bottom: 120px;
        min-height: calc(100vh - 180px);
    }
    
    .wizard-header h1 {
        font-size: 1.8em;
    }
    
    .quantity-cards-grid {
        gap: 12px;
        padding: 0 15px;
    }
    
    .quantity-card {
        padding: 24px 16px;
        max-width: 150px;
    }
    
    .quantity-number {
        font-size: 2.2em;
    }
    
    .quantity-label {
        font-size: 0.85em;
    }
    
    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 25px;
        padding: 20px 5px;
    }
    
    .food-item {
        padding: 30px 12px 20px 12px;
        overflow: visible;
    }
    
    .food-item-image {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
        margin: 8px auto 12px auto;
        border-radius: 50%;
    }
    
    .food-item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        padding: 8px;
    }
    
    .selection-badge {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-width: 3px;
        top: 4px;
        right: 4px;
    }
    
    .food-item-name {
        font-size: 0.95em;
        min-height: 2.2em;
    }
    
    .food-item-price {
        font-size: 1.2em;
    }
    
    .protein-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .delivery-days-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }
    
    .wizard-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-wizard-back,
    .btn-wizard-continue,
    .btn-wizard-save {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    /* Ensure form validation is visible on mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Make error messages more visible on mobile */
    #name-error {
        font-size: 0.813rem !important;
        line-height: 1.4;
        padding: 4px 0;
    }
    
    /* Improve touch targets on mobile */
    .form-group label {
        font-size: 1em;
        margin-bottom: 10px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-wizard-continue,
    .btn-wizard-save {
        margin-left: 0;
    }
}

/* Quantity selectors for sides */
input[type="number"].side1-qty,
input[type="number"].side2-qty {
    -moz-appearance: textfield;
}

input[type="number"].side1-qty::-webkit-outer-spin-button,
input[type="number"].side1-qty::-webkit-inner-spin-button,
input[type="number"].side2-qty::-webkit-outer-spin-button,
input[type="number"].side2-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-increase,
.qty-decrease {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.qty-increase:active,
.qty-decrease:active {
    transform: scale(0.95);
}

.sides-protein-card {
    transition: box-shadow 0.3s ease;
}

.sides-protein-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for 3-column sides layout */
@media (max-width: 768px) {
    /* Stack grid columns on mobile */
    .sides-grid-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Stack 3 columns on mobile */
    .sides-protein-card div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Touch-friendly inputs */
    .sides-protein-card select,
    .sides-protein-card input[type="number"] {
        font-size: 16px !important;
    }
    
    /* Mobile repeat quantity controls */
    .repeat-qty-desktop {
        display: none !important;
    }
    
    .repeat-qty-mobile {
        display: flex !important;
    }
    
    .repeat-qty-decrease,
    .repeat-qty-increase {
        min-width: 44px !important;
        min-height: 44px !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    .repeat-qty-decrease:active,
    .repeat-qty-increase:active {
        background: #e3f2fd !important;
    }
    
    /* Mobile arrow indicator positioning */
    .sides-selection-container {
        padding-left: 10px;
        padding-top: 30px;
    }
    
    .sides-protein-card {
        margin-top: 10px;
    }
    
    .repeat-arrow-indicator {
        left: 50% !important;
        top: -25px !important;
        transform: translateX(-50%) !important;
        font-size: 20px !important;
    }
    
    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: translateX(-50%) scale(1) !important;
        }
        50% {
            opacity: 0.7;
            transform: translateX(-50%) scale(1.1) !important;
        }
    }
}

@media (max-width: 480px) {
    .sides-protein-card {
        padding: 15px !important;
    }
}

/* Notification Animation */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Start Day Selection Buttons */
.start-day-btn {
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.start-day-btn:hover {
    background: #f8f9fa !important;
    border-color: #abcf36 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.start-day-btn.selected {
    background: linear-gradient(135deg, #abcf36 0%, #8ab928 100%) !important;
    border-color: #abcf36 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(171, 207, 54, 0.3) !important;
    font-weight: 700 !important;
}

.start-day-btn:active {
    transform: scale(0.98) !important;
}

#delivery-schedule {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#delivery-notices {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .start-day-btn {
        font-size: 0.85em !important;
        padding: 12px 6px !important;
    }
}

@media (max-width: 480px) {
    .start-day-btn {
        font-size: 0.8em !important;
        padding: 10px 4px !important;
    }
}

/* ============================================================================
   ENHANCED RESPONSIVE BREAKPOINTS - COMPREHENSIVE MOBILE/TABLET OPTIMIZATION
   ============================================================================ */

/* Extra Small Devices - Phones in Portrait (320px - 480px) */
@media (max-width: 480px) {
    /* Container adjustments */
    .meal-customizer-container {
        padding: 8px;
        padding-bottom: 100px;
        min-height: calc(100vh - 150px);
    }
    
    /* Wizard headers */
    .wizard-header h1 {
        font-size: 1.5em !important;
        margin-bottom: 8px;
    }
    
    .wizard-header p {
        font-size: 0.9em;
    }
    
    /* Quantity cards - stack in 2 columns */
    .quantity-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 0 10px;
    }
    
    .quantity-card {
        padding: 20px 12px;
    }
    
    .quantity-number {
        font-size: 2em;
    }
    
    /* Food item grids - 2 columns max */
    .food-grid,
    .protein-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .food-item {
        padding: 20px 10px 15px;
    }
    
    .food-item-image {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        margin: 8px auto 10px auto;
        border-radius: 50%;
    }
    
    .food-item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        padding: 6px;
    }
    
    .food-item-name {
        font-size: 0.85em;
        min-height: 2em;
    }
    
    .food-item-price {
        font-size: 1.1em;
    }
    
    /* Buttons - full width on very small screens */
    .wizard-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-wizard-back,
    .btn-wizard-continue,
    .btn-wizard-save {
        width: 100%;
        min-height: 48px; /* Enhanced touch target */
        font-size: 0.95em;
    }
    
    /* Delivery schedule */
    #delivery-schedule {
        padding: 12px;
    }
    
    /* Form inputs - prevent zoom */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    /* Sides grid - single column */
    .sides-grid-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Small Devices - Large Phones (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .quantity-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .food-grid,
    .protein-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Small to Medium Devices - Phones Landscape, Small Tablets (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .quantity-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .food-grid,
    .protein-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Medium Devices - Tablets Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .meal-customizer-container {
        padding: 20px;
        padding-bottom: 80px;
        min-height: calc(100vh - 200px);
    }
    
    .quantity-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 18px;
    }
    
    .food-grid,
    .protein-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .wizard-actions {
        flex-direction: row;
    }
    
    .btn-wizard-continue,
    .btn-wizard-save {
        min-width: 180px;
    }
}

/* Medium to Large Devices - Tablets Landscape (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .food-grid,
    .protein-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

/* Large Devices - Desktop (1281px+) */
@media (min-width: 1281px) {
    .food-grid,
    .protein-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .meal-customizer-container {
        padding: 30px 20px;
        padding-bottom: 100px;
        min-height: calc(100vh - 250px);
    }
}

/* Landscape Orientation Specific Fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .wizard-header h1 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .wizard-header p {
        font-size: 0.85em;
        margin-bottom: 12px;
    }
    
    .quantity-cards-grid,
    .food-grid,
    .protein-grid {
        gap: 12px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .food-item-image,
    .dessert-card img {
        /* Sharper rendering on high-DPI screens */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .meal-customizer-container {
        /* Add dark mode styles if needed */
    }
}

/* Print Styles */
@media print {
    .wizard-actions,
    .btn-wizard-back,
    .btn-wizard-continue,
    .btn-wizard-save {
        display: none;
    }
    
    .wizard-step {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* ============================================================================
   FAQ SECTION STYLING
   ============================================================================ */

.meal-faq-section {
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.faq-header p {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(171, 207, 54, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
    gap: 15px;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f8fcf0 0%, #ffffff 100%);
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: #abcf36;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 400;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #8ab928;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

/* Responsive Design for FAQ */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .meal-faq-section {
        margin-top: 40px;
        padding: 30px 15px;
    }
    
    .faq-header h2 {
        font-size: 1.5em;
    }
    
    .faq-header p {
        font-size: 0.95em;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 0.95em;
    }
    
    .faq-icon {
        width: 26px;
        height: 26px;
        font-size: 1.3em;
    }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .faq-grid {
        gap: 18px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-answer,
    .faq-icon {
        transition: none;
    }
}
/* ============================================================================
   GOOGLE RECAPTCHA ALIGNMENT & RESPONSIVENESS
   ============================================================================ */

/* Primary reCAPTCHA wrapper - ensures centering and containment */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 24px 0;
    padding: 0 16px; /* Side padding for small screens */
    box-sizing: border-box;
}

/* Google reCAPTCHA container (class added by Google's script) */
.g-recaptcha {
    display: inline-block;
    max-width: 100%;
}

/* Responsive scaling for screens smaller than 400px */
@media screen and (max-width: 399px) {
    .recaptcha-wrapper {
        padding: 0 12px;
    }
    
    /* Safe scaling for reCAPTCHA - Google allows CSS transform */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center center;
        margin: -12px auto; /* Compensate for scale reduction */
    }
}

/* Extra small devices (320px to 360px) - minimal scaling */
@media screen and (max-width: 360px) {
    .g-recaptcha {
        transform: scale(0.77);
        margin: -16px auto;
    }
}

/* Very small devices (320px) - maximum safe scaling */
@media screen and (max-width: 320px) {
    .recaptcha-wrapper {
        padding: 0 8px;
    }
    
    .g-recaptcha {
        transform: scale(0.72);
        margin: -18px auto;
    }
}

/* Prevent overflow in compact mode */
.g-recaptcha > div {
    margin: 0 auto;
}

/* Optional: Add subtle focus indicator for accessibility */
.g-recaptcha:focus-within {
    outline: 2px solid #4285f4;
    outline-offset: 4px;
    border-radius: 4px;
}
/* ============================================================================
   LOADING STATE FOR MEAL PACKAGE SELECTION
   ============================================================================ */

/* Loading overlay for protein grid */
.protein-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.protein-loading p {
    margin-top: 20px;
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

/* Spinner animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #abcf36;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide protein grid while loading */
.protein-grid.loading {
    display: none;
}

/* Responsive loading state */
@media screen and (max-width: 768px) {
    .protein-loading {
        padding: 40px 15px;
        min-height: 250px;
    }
    
    .protein-loading p {
        font-size: 1em;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}

@media screen and (max-width: 480px) {
    .protein-loading {
        padding: 30px 10px;
        min-height: 200px;
    }
    
    .protein-loading p {
        font-size: 0.95em;
    }
}
/* ============================================================================
   ADDRESS AUTOCOMPLETE STYLING
   ============================================================================ */

.mc-address-wrapper {
    position: relative;
    display: block;
}

.mc-address-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: -2px;
}

.mc-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.mc-suggestion-item:hover,
.mc-suggestion-item.mc-suggestion-active {
    background-color: #f5f5f5;
}

.mc-suggestion-item:last-child {
    border-bottom: none;
}

.mc-suggestion-item div:first-child {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mc-suggestion-item div:last-child {
    font-size: 0.85em;
    color: #666;
}

/* Focus state for address input */
#customer-address:focus {
    border-color: #abcf36 !important;
    box-shadow: 0 0 0 3px rgba(171, 207, 54, 0.1);
}

#customer-address.mc-valid {
    border-color: #4caf50 !important;
}

#customer-address.mc-invalid {
    border-color: #dc3545 !important;
}

/* Mobile responsiveness for autocomplete */
@media (max-width: 768px) {
    .mc-address-suggestions {
        max-height: 200px;
        font-size: 0.95em;
    }

    .mc-suggestion-item {
        padding: 10px 12px;
    }

    .mc-suggestion-item div:first-child {
        font-size: 0.95em;
    }

    .mc-suggestion-item div:last-child {
        font-size: 0.8em;
    }
}

/* Scrollbar styling for autocomplete dropdown */
.mc-address-suggestions::-webkit-scrollbar {
    width: 6px;
}

.mc-address-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mc-address-suggestions::-webkit-scrollbar-thumb {
    background: #abcf36;
    border-radius: 3px;
}

.mc-address-suggestions::-webkit-scrollbar-thumb:hover {
    background: #8ab928;
}