/* Dealership Credit Application - Frontend Styles */

.dca-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dca-logo {
    text-align: center;
    margin-bottom: 30px;
}

.dca-logo img {
    max-width: 250px;
    height: auto;
}

.dca-form-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #003366;
}

/* Progress Bar */
.dca-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.dca-progress-bar-fill {
    height: 100%;
    background: #003366;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Steps */
.dca-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.dca-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.dca-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.dca-step-number.active {
    background: #003366;
    color: #fff;
}

.dca-step-label {
    display: block;
    font-size: 14px;
    color: #666;
}

/* Messages */
.dca-message {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-size: 16px;
}

.dca-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.dca-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.dca-message h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

/* Form Pages */
.dca-page {
    display: none;
}

.dca-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.dca-page h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
}

.dca-page h3 {
    font-size: 18px;
    margin: 30px 0 20px 0;
    color: #003366;
}

/* Form Layout */
.dca-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dca-form-group {
    display: flex;
    flex-direction: column;
}

.dca-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.dca-form-group input,
.dca-form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.dca-form-group input:focus,
.dca-form-group select:focus {
    outline: none;
    border-color: #0066cc;
}

.dca-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

/* Checkboxes */
.dca-checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.dca-checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.dca-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dca-checkbox-group a {
    color: #0066cc;
    text-decoration: underline;
}

/* Navigation Buttons */
.dca-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.dca-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dca-btn-primary {
    background: #0066cc;
    color: #fff;
}

.dca-btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.3);
}

.dca-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.dca-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.dca-btn-secondary:hover {
    background: #5a6268;
}

/* Loading Spinner */
.dca-loading {
    text-align: center;
    padding: 40px;
}

.dca-spinner {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .dca-form-container {
        padding: 20px;
        margin: 20px;
    }

    .dca-form-row {
        grid-template-columns: 1fr;
    }

    .dca-form-navigation {
        flex-direction: column;
    }

    .dca-btn {
        width: 100%;
    }
}
