/* Order Form Styles */

/* Form inputs focus states */
.orderform-container input:focus,
.orderform-container select:focus,
.orderform-container textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Disabled dropdown options */
.orderform-container select option:disabled {
    color: #9ca3af;
}

/* Error states */
.orderform-container .border-red-500 {
    border-color: #ef4444 !important;
}

.orderform-container .border-red-500:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Validation errors container */
.validation-errors {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map container styling */
#form-map {
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    min-height: 300px;
}

/* Loading state for dropdowns */
.orderform-container select.loading {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="none" stroke="%239CA3AF" stroke-width="2" d="M12 2v4m0 12v4m10-10h-4M6 12H2m15.364-6.364l-2.828 2.828M8.464 15.536l-2.828 2.828m12.728 0l-2.828-2.828M8.464 8.464L5.636 5.636"%3E%3Canimate attributeName="opacity" dur="1s" values="1;0;1" repeatCount="indefinite"/%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5rem;
}

/* Success message styling */
.flash-message {
    animation: slideDown 0.3s ease-out;
}

/* Improved button hover states */
.orderform-container button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.orderform-container button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Phone input styling */
input[type="tel"] {
    font-family: monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #form-map {
        min-height: 250px;
    }
    
    .orderform-container .grid {
        gap: 1rem;
    }
}

/* Leaflet map cursor */
#form-map {
    cursor: crosshair;
}

#form-map .leaflet-marker-icon {
    cursor: move;
}

/* Form section spacing */
.orderform-container .form-section {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Required field indicator */
.orderform-container label.required::after {
    content: ' *';
    color: #ef4444;
}

/* Dropdown arrow styling */
.orderform-container select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"%3E%3Cpath stroke="%236B7280" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

/* Hidden options styling */
option[style*="display: none"] {
    display: none !important;
}