/* Order Form Specific Styles */
/* These styles extend the base brand styles in styles.css */

/* Override the right margin from styles.css that's meant for the floating order button */
main {
    margin-right: auto !important;
}

/* Override body to work with the fixed header from base styles */
body { 
    background: #f5f5f5; /* Keep form background */
}

/* Form container - matches brand shadow and radius style */
.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* Match brand shadow */
    margin-top: 100px; /* Account for fixed header */
    margin-bottom: 2rem;
}

/* Form elements */
.form-group { 
    margin-bottom: 20px; 
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600;
    color: #333;
}

input, textarea, select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4a6da7; /* Match brand color */
    box-shadow: 0 0 0 3px rgba(74, 109, 167, 0.1);
}

textarea { 
    height: 80px; 
    resize: vertical; 
}

/* Buttons - use brand color scheme */
button { 
    background: #4a6da7; /* Brand color */
    color: white; 
    padding: 12px 24px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover { 
    background: #3a5a8f; /* Darker brand color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 109, 167, 0.3);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Form sections */
.section { 
    border: 1px solid #e0e0e0; 
    padding: 20px; 
    margin: 20px 0; 
    border-radius: 8px; 
    background: #fafafa;
}

.section h2,
.section h3 { 
    margin-top: 0; 
    color: #4a6da7; /* Brand color */
    border-bottom: 2px solid #4a6da7;
    padding-bottom: 10px;
}

.section h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Date input grid */
.date-group { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

/* Status messages */
.status { 
    padding: 15px; 
    margin: 20px 0; 
    border-radius: 5px; 
    border: 1px solid;
}

.success { 
    background: #d4edda; 
    border-color: #c3e6cb; 
    color: #155724; 
}

.error { 
    background: #f8d7da; 
    border-color: #f5c6cb; 
    color: #721c24; 
}

.loading { 
    background: #d1ecf1; 
    border-color: #bee5eb; 
    color: #0c5460; 
}

.hidden { 
    display: none; 
}

/* File upload area */
.file-upload { 
    border: 2px dashed #4a6da7; /* Brand color */
    padding: 30px; 
    text-align: center; 
    border-radius: 8px; 
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover { 
    border-color: #3a5a8f; 
    background: #f0f4ff; 
}

.file-upload.dragover { 
    border-color: #2c5aa0; 
    background: #e6f0ff; 
    transform: scale(1.02);
}

/* Download button */
.download-button {
    display: inline-block;
    padding: 12px 24px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Page title and subtitle */
h1 {
    color: #4a6da7; /* Brand color */
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin-top: 140px; /* More space on mobile for stacked nav */
    }
    
    .date-group {
        grid-template-columns: 1fr;
    }
}
