/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #EBF4FF 0%, #E1EFFE 100%);
    color: #1a202c;
    line-height: 1.5;
    min-height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 48rem;
    margin: 2rem auto;
}

/* Carte de demande de prêt */
.loan-request-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

/* Logo et en-tête */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.credit-card-icon {
    color: #063970;
    width: 3rem;
    height: 3rem;
}

.brand-name {
    margin-left: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 3rem;
}

/* Indicateur d'étapes */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: #063970;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-label {
    font-size: 0.875rem;
    color: #4a5568;
    text-align: center;
    max-width: 120px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

input,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    background-color: white;
}

input:focus,
select:focus {
    outline: none;
    border-color: #063970;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input.error,
select.error {
    border-color: #dc2626;
}

/* Boutons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #063970;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-secondary:hover {
    color: #063970;
}

/* Message d'erreur */
.error-message {
    background-color: #FEE2E2;
    color: #DC2626;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: '⚠️';
    margin-right: 0.5rem;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .loan-request-card {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-label {
        display: none;
    }

    .steps-indicator::before {
        left: 2rem;
        right: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }
}