/* Form Styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Loan Type Specific Styling */
.page-header.personal-loan {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.page-header.home-loan {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.page-header.business-loan {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.page-header.property-loan {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.page-header-text {
    flex: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.page-header-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 300;
    backdrop-filter: blur(10px);
}

.feature-badge i {
    font-size: 0.875rem;
}

.page-header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    filter: brightness(1.1);
}

/* Loan Features Section */
.loan-features {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    font-weight: 300;
    line-height: 1.6;
}

/* Application Form Section */
.application-form-section {
    padding: 4rem 0;
    background-color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-weight: 300;
    opacity: 0.9;
}

.loan-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
    font-weight: 400;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    min-width: 200px;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

.benefit-item h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.benefit-item p {
    color: #6b7280;
    font-weight: 300;
    line-height: 1.6;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.2);
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1f2937;
}

.modal-content p {
    color: #6b7280;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Loading States */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .page-header-features {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .loan-form {
        padding: 1.5rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        width: 100%;
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .feature-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .form-container {
        margin: 0 1rem;
    }
    
    .feature-card,
    .benefit-item {
        padding: 1.5rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Form Validation Styles */
.form-group.success input,
.form-group.success select {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.success-message {
    color: #10b981;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Custom Select Styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Progress Indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background-color: #667eea;
}

.progress-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    z-index: 2;
}

.progress-step.active .progress-circle {
    background-color: #667eea;
    color: white;
}

.progress-step.completed .progress-circle {
    background-color: #10b981;
    color: white;
}

.progress-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.progress-step.active .progress-label {
    color: #667eea;
    font-weight: 500;
}

/* NEW SIMPLIFIED LOAN FORM STYLES */
.simplified-loan-form-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.simplified-form-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.simplified-form-title {
    text-align: center;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.simplified-loan-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.simplified-form-field {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.simplified-form-field:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.simplified-form-field i {
    color: #6b46c1;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.simplified-form-field input,
.simplified-form-field select {
    width: 100%;
    color: #475569;
    font-size: 0.875rem;
    border: none;
    outline: none;
    background: transparent;
}

.simplified-form-field input::placeholder {
    color: #475569;
}

.simplified-form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
}

.simplified-form-field.loan-type-field {
    background-color: #f1f5f9;
}

.simplified-terms-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.simplified-terms-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.simplified-terms-checkbox {
    margin-top: 0.25rem;
    accent-color: #667eea;
}

.simplified-terms-text a {
    color: #2563eb;
    text-decoration: underline;
}

.simplified-terms-text a:hover {
    color: #1d4ed8;
}

.simplified-submit-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.simplified-submit-btn {
    background-color: #60a5fa;
    color: white;
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 0.375rem;
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.simplified-submit-btn:hover {
    background-color: #3b82f6;
}

.simplified-submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.simplified-submit-btn i {
    font-size: 0.75rem;
}

/* Error states for simplified form */
.simplified-form-field.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.simplified-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive design for simplified form */
@media (min-width: 640px) {
    .simplified-form-title {
        font-size: 1.75rem;
    }
    
    .simplified-form-field {
        width: 18%;
        min-width: 180px;
    }
}

@media (max-width: 639px) {
    .simplified-loan-form {
        flex-direction: column;
        align-items: center;
    }
    
    .simplified-form-field {
        max-width: 400px;
    }
    
    .simplified-submit-btn {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}
