/* ========== MEAL BOOK SECTION STYLES ========== */

.meal-book-section {
    background: #0d0a04;
    padding: 140px 5vw 80px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.meal-book-container {
    width: 100%;
    max-width: 1000px;
    background: #14110b;
    border-radius: 40px;
    padding: 60px 80px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.meal-book-title {
    font-family: 'Jost', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.meal-book-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
}

.form-section-title {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    color: #ffffff;
    margin: 40px 0 20px;
}

.selection-title {
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    color: #ffffff;
    margin: 30px 0 15px;
}

.section-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.required {
    color: #ff4d4d !important;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #1c1811;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dca959;
    background: #251f16;
}

.form-group.full-width {
    margin-bottom: 25px;
}

.form-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #ffffff;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input:checked+.radio-custom {
    border-color: #dca959;
}

.radio-label input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #dca959;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Selection Box Styles */
.selection-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.selection-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.selection-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(220, 169, 89, 0.3);
}

.item-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.item-name {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.item-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.item-stats {
    display: flex;
    gap: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: #dca959;
    color: #14110b;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn.dec {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.qty-btn:hover {
    transform: scale(1.05);
}

.qty-display {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    min-width: 20px;
    text-align: center;
}

/* Reusing Modal Styles */
.picker-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #14110b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 40px;
    z-index: 1000;
    width: 380px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.picker-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.picker-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-month-year {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.calendar-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 15px;
}

.day-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
}

.calendar-day.selected {
    background: #dca959;
    color: #14110b;
    font-weight: 700;
}

.calendar-day.today {
    border: 1px solid rgba(220, 169, 89, 0.4);
}

.picker-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.picker-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.picker-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-btn.confirm {
    background: #dca959;
    color: #14110b;
    border: none;
}

/* File Upload Zone */
.file-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.file-upload-zone {
    background: #1c1811;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.file-upload-zone:hover {
    border-color: #dca959;
    background: #251f16;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: #dca959;
    opacity: 0.8;
}

.upload-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #dca959;
    font-weight: 500;
}

.file-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #dca959;
    background: rgba(220, 169, 89, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Submission */
.submit-btn {
    width: 100%;
    padding: 20px;
    border-radius: 40px;
    background: linear-gradient(135deg, #dca959 0%, #b38641 100%);
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.form-feedback {
    margin-top: 25px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.form-feedback.active {
    display: block;
}

.form-feedback.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.error-message {
    color: #ff4d4d;
    font-size: 13px;
    display: none;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
}

.error-message.active {
    display: block;
}

.category-error {
    margin-top: -10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.readonly-input {
    cursor: pointer;
}

@media (max-width: 768px) {
    .meal-book-section {
        padding: 120px 20px 60px;
    }

    .meal-book-container {
        padding: 40px 25px;
        border-radius: 30px;
    }

    .meal-book-title {
        font-size: 30px;
        text-align: center;
    }

    .meal-book-subtitle {
        text-align: center;
        font-size: 14px;
    }

    .selection-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px 20px;
    }

    .item-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .item-main {
        justify-content: center;
    }

    .item-stats {
        justify-content: center;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .plan-details-title {
        text-align: center;
    }
}