﻿/**
 * forms.css - Complex Form Layouts
 * Pricing grids, weekend checkboxes, and form-specific components
 */

/* ============================================
   WEEKEND/WEEKDAYS CHECKBOX LAYOUT
   ============================================ */

@media (max-width: 767.98px) {
    .weekend-definition {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
        gap: 10px !important;
        padding: 15px !important;
        background: transparent !important;
        border: none !important;
        box-sizing: border-box !important;
        justify-content: start !important;
    }

    .day-checkbox {
        min-width: 130px !important;
        width: 130px !important;
        max-width: 130px !important;
        background-color: #f8f9fa !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
        border: 1px solid #dee2e6 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        transition: all 0.2s ease !important;
    }

        .day-checkbox:hover {
            background-color: #e8f5e8 !important;
            border-color: #28a745 !important;
        }

        .day-checkbox label {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            cursor: pointer !important;
            font-size: 15px !important;
            font-weight: 500 !important;
            color: #333 !important;
            background: none !important;
            border: none !important;
            box-sizing: border-box !important;
            white-space: nowrap !important;
        }

        .day-checkbox input[type="checkbox"] {
            width: 18px !important;
            height: 18px !important;
            margin: 0 25px 0 0 !important;
            flex-shrink: 0 !important;
            accent-color: #28a745 !important;
            background: white !important;
            border: 2px solid #dee2e6 !important;
            border-radius: 4px !important;
        }

        .day-checkbox:has(input:checked) {
            background-color: #e8f5e8 !important;
            border-color: #28a745 !important;
        }

            .day-checkbox:has(input:checked) label {
                color: #28a745 !important;
                font-weight: 600 !important;
            }

    /* Fix season info text */
    .season-info {
        text-align: center !important;
        margin-top: 15px !important;
        padding: 12px !important;
        background-color: #e3f2fd !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        color: #1976d2 !important;
        font-style: italic !important;
    }
}

/* ============================================
   PRICING GRID LAYOUT
   ============================================ */

@media (max-width: 767.98px) {
    .pricing-grid {
        display: block !important;
        width: 100% !important;
    }

    .pricing-row {
        display: block !important;
        margin-bottom: 15px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }

    .pricing-header {
        display: none !important;
    }

    .pricing-cell {
        display: block !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

        .pricing-cell:last-child {
            border-bottom: none !important;
        }

    .pricing-row .pricing-cell:first-child {
        background-color: #f8f9fa !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        color: #333 !important;
    }

    .price-input {
        width: 100% !important;
        height: 44px !important;
        font-size: 16px !important;
        padding: 10px !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

        .price-input:focus {
            border-color: #28a745 !important;
            box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
            outline: none !important;
        }
}

.pricing-row .pricing-cell small.text-muted {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    font-style: italic;
}
