/* 
 * Figurine Request Form Styles - Light Theme Only
 * File: public/css/figurine-form.css
 */

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #3b82f6;
}

.form-header h1 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
}

.form-body {
    padding: 2rem;
    background: white;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-title svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    color: #3b82f6;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white !important;
    color: #1f2937 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white !important;
}

/* Form Layouts */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-three {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 1rem;
}

/* Radio Groups */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white !important;
    color: #374151 !important;
}

.radio-item:hover {
    border-color: #93c5fd;
    background-color: #f1f5f9 !important;
}

.radio-item.selected {
    border-color: #3b82f6;
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.radio-item input[type="radio"] {
    margin-right: 0.5rem;
    width: auto;
}

/* Date Selection */
.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
    max-height: 450px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white !important;
}

.date-option {
    padding: 1rem 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white !important;
    color: #374151 !important;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-option:hover {
    border-color: #93c5fd;
    background-color: #f1f5f9 !important;
    color: #1e40af !important;
}

.date-option.selected {
    border-color: #3b82f6;
    background-color: #dbeafe !important;
    color: #1e40af !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.date-option.unavailable {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.date-option.past {
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    border-color: #d1d5db;
    opacity: 0.7;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Handling */
.error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Date Loading State */
#date-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    background: white !important;
}

.date-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Messages */
.error-container {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-container h3 {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-container ul {
    color: #b91c1c;
    font-size: 0.875rem;
    margin: 0;
    padding-left: 1rem;
}

/* Success State */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
    color: #15803d;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Date Info */
.date-info {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b !important;
}

/* Month Headers */
.month-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b !important;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    background: white !important;
}

/* Material Selection */
.material-preview {
    display: none; /* Can be used for material previews later */
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .form-header {
        padding: 1.5rem 1rem;
    }
    
    .form-body {
        padding: 1.5rem 1rem;
    }
    
    .form-row,
    .form-row-three {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .date-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 250px;
        padding: 0.5rem;
    }
    
    .date-option {
        min-height: 75px;
        padding: 0.75rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .date-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .form-header h1 {
        font-size: 1.75rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .date-option {
        min-height: 70px;
    }
}

/* Print styles */
@media print {
    .form-header {
        background: none !important;
        color: black !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .submit-btn {
        display: none;
    }
    
    .date-grid {
        max-height: none;
        overflow: visible;
    }
    
    .form-container {
        box-shadow: none;
    }
}

/* 
 * FORCE LIGHT THEME - Add this to the END of figurine-form.css 
 * This overrides any existing dark mode CSS
 */

/* Force light theme for ALL screen preferences */
.form-container {
    background: white !important;
    color: #1f2937 !important;
}

.form-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #1e293b !important;
}

.form-header h1 {
    color: #1e293b !important;
}

.form-header p {
    color: #64748b !important;
}

.form-body {
    background: white !important;
    color: #1f2937 !important;
}

.section-title {
    color: #1e293b !important;
}

.form-group label {
    color: #374151 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: white !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white !important;
    color: #1f2937 !important;
}

.radio-item {
    background: white !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.radio-item.selected {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.date-option {
    background: white !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.date-option.selected {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.date-option.unavailable {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
}

.date-option.past {
    background: #f9fafb !important;
    color: #6b7280 !important;
}

.date-grid {
    background: white !important;
}

.date-info {
    background: #f8fafc !important;
    color: #64748b !important;
}

.month-header {
    color: #1e293b !important;
    background: white !important;
}

#date-loading {
    background: white !important;
    color: #6b7280 !important;
}

/* Disable ALL dark mode CSS */
@media (prefers-color-scheme: dark) {
    .form-container {
        background: white !important;
        color: #1f2937 !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: white !important;
        border-color: #d1d5db !important;
        color: #1f2937 !important;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #3b82f6 !important;
        background: white !important;
        color: #1f2937 !important;
    }
    
    .date-option {
        background: white !important;
        border-color: #d1d5db !important;
        color: #374151 !important;
    }
    
    .radio-item {
        background: white !important;
        border-color: #d1d5db !important;
        color: #374151 !important;
    }
    
    .radio-item.selected {
        background: #dbeafe !important;
        color: #1e40af !important;
    }
    
    .date-option.selected {
        background: #dbeafe !important;
        color: #1e40af !important;
    }
    
    .form-header {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
        color: #1e293b !important;
    }
    
    .form-body {
        background: white !important;
        color: #1f2937 !important;
    }
    
    .section-title {
        color: #1e293b !important;
    }
    
    .form-group label {
        color: #374151 !important;
    }
}
