
/* Loan Application Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Garamond, Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Ensure all input fields use Garamond font */
input, textarea, select, button {
    font-family: Garamond, Georgia, 'Times New Roman', serif !important;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="password"], 
input[type="date"], 
textarea, 
select {
    font-family: Garamond, Georgia, 'Times New Roman', serif !important;
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.loan-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.loan-header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    border-radius: 0;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

/* Step 1: OTP Modal */
.otp-modal {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.otp-left {
    flex: 1;
    background: #e8f4fd;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.otp-left h2 {
    color: #1e40af;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #374151;
}

.benefit-item i {
    color: #16a34a;
    font-size: 1.2rem;
}

.loan-illustration img {
    max-width: 250px;
    height: auto;
}

.otp-right {
    flex: 1;
    padding: 3rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.otp-right h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.4;
}

.offer-points {
    margin-bottom: 2rem;
}

.point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #374151;
}

.point i {
    color: #ec4899;
    font-size: 1.1rem;
}

.phone-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.verify-btn {
    background: #1f2937;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.proceed-btn {
    width: 100%;
    background: #16a34a;
    color: white;
    border: none;
    padding: 1rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.proceed-btn:hover {
    background: #15803d;
}

/* Step 2: Product Modal */
.product-modal {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
}

.hero-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #fff 100%);
    padding: 2rem 0;
    position: relative;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><rect width="1200" height="300" fill="%23f8fafc"/><circle cx="1000" cy="150" r="100" fill="%23e5e7eb" opacity="0.5"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    color: #1e40af;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    padding-left: 2rem;
    margin-bottom: 0;
}

.hero-image {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-image img {
    max-width: 300px;
    height: auto;
}

.product-modal .container {
    padding: 2rem;
}

.product-modal h2 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.loan-options {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loan-amount-section {
    margin-bottom: 1.5rem;
}

.amount-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.amount-input span {
    font-weight: 600;
    color: #374151;
}

.amount-input input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    width: 120px;
}

.amount-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6b7280;
}

.duration-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.duration-section select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.duration-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.bank-options h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.bank-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bank-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bank-logo span {
    font-weight: 700;
    color: #1e40af;
    font-size: 1.1rem;
}

.bank-logo small {
    color: #6b7280;
    font-size: 0.8rem;
}

.bank-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item span:first-child {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.detail-item span:last-child {
    color: #1e40af;
    font-weight: 600;
}

/* Step 3: Form Modal */
.form-modal {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
}

.form-modal .hero-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #fff 100%);
    padding: 2rem 0;
    position: relative;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><rect width="1200" height="300" fill="%23f8fafc"/><circle cx="1000" cy="150" r="100" fill="%23e5e7eb" opacity="0.5"/></svg>');
    background-size: cover;
    background-position: center;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-section-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section-card h3 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-section-card h4 {
    color: #1e40af;
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    background: #16a34a;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #15803d;
}

/* Step 4: Role Selection Modal */
.selection-modal {
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    margin-top: 20vh;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.selection-modal h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.selection-modal p {
    color: #374151;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.selection-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-selection {
    padding: 1rem 2rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-selection:hover {
    background: #1d4ed8;
}

/* Step 5: Congratulations Modal */
.congrats-modal {
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    margin-top: 15vh;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.congrats-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-animation {
    font-size: 4rem;
    color: #16a34a;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.congrats-content h2 {
    color: #16a34a;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.congrats-content > p {
    color: #374151;
    font-size: 1.1rem;
    margin: 0;
}

.congrats-details {
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

.restart-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.restart-btn:hover {
    background: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .otp-modal {
        flex-direction: column;
        max-height: none;
        height: auto;
    }
    
    .otp-left,
    .otp-right {
        padding: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-image {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .bank-details {
        grid-template-columns: 1fr;
    }
    
    .selection-buttons {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 95%;
    }
    
    .otp-left,
    .otp-right,
    .form-modal .container {
        padding: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
}
