/* Auto Application Form Styles */

.auto-app-form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.auto-app-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 32px;
    height: 32px;
    color: #28a745;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.success-message strong {
    display: block;
    color: #155724;
    font-size: 16px;
    margin-bottom: 4px;
}

.success-message p {
    margin: 0;
    color: #155724;
    font-size: 14px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #007bff;
    display: inline-block;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auto-app-form {
        padding: 24px;
    }
}

/* Labels */
.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Input Fields */
.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #007bff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input:hover,
.form-select:hover {
    border-color: #b0b0b0;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Select Dropdown */
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* File Input */
.file-input-wrapper {
    position: relative;
}

.form-file {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-file:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.form-file:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.file-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

/* Vehicle Uploads Section */
.vehicle-uploads {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.conditional-notice {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.conditional-notice strong {
    color: #0056b3;
}

/* Submit Button */
.form-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.submit-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.submit-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Required Field Validation */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Loading State (optional enhancement) */
.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

/* Accessibility */
.form-input:focus-visible,
.form-select:focus-visible,
.form-file:focus-visible,
.submit-button:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .submit-button {
        display: none;
    }
    
    .auto-app-form {
        box-shadow: none;
        padding: 0;
    }
}