/* Modern Mobile-First Loan Application Form CSS */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-primary: linear-gradient(135deg, #5153d2 0%, #111725 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Trust Badges */
.trust-badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    padding: 0.4rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.trust-badge:active {
    transform: scale(0.95);
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.trust-badge-icon svg {
    width: 20px;
    height: 20px;
}

.trust-badge-text {
    color: var(--white);
}

.trust-badge-title {
    font-size: 0.8125rem;
    font-weight: 700;
    display: block;
    line-height: 1.3;
}

/* Hero Section - Mobile First */
.min-h-screen {
    min-height: 100vh;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.hero-section {
    background: var(--gradient-primary);
    padding: 1.5rem 0.4rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo {
    max-width: 160px;
    height: auto;
    margin: 10px auto 1rem;
    display: block;
    /* filter: brightness(0) invert(1); */
}

.hero-container h5 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-container h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 1rem;
}

/* Trust Badges */
.shadow {
    box-shadow: var(--shadow);
}

.border-radius-16 {
    border-radius: 1rem;
}

.hero-container .shadow {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-container .row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
}

.hero-container .row > div {
    flex: 1;
    text-align: center;
}

.hero-container .row span {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Progress Header - Redesigned */
.progress-header {
    background: var(--white);
    margin: -1.5rem 1rem 1rem;
    border-radius: 1.25rem;
    padding: 0.8rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.progress-container {
    max-width: 100%;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.step-indicator {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Progress Steps - Mobile Optimized */
.progress-bars {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 0.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    position: relative;
}

.step-circle i {
    font-size: 1.25rem;
    color: var(--gray);
}

.step-circle.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.step-circle.active i {
    color: var(--white);
}

.progress-step small {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
    text-align: center;
    max-width: 60px;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 0.25rem;
    position: relative;
    top: -10px;
    border-radius: 2px;
}

.progress-line.completed {
    background: var(--gradient-primary);
}

/* Form Container - New Layout */
.form-container {
    padding: 0;
}

.form-card {
    background: var(--white);
    margin: 1rem;
    border-radius: 1.5rem;
    padding: 0.8rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

/* Step Header - Redesigned */
.step-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.step-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.step-header p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Fields - Redesigned */
.form-fields {
    margin-bottom: 1.5rem;
}

.field-group {
    margin-bottom: 1.5rem;
}

.field-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.25rem;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

/* Review Cards - New Design */
.review-cards {
    margin-bottom: 1.5rem;
}

.review-card {
    background: var(--gradient-primary);
    padding: 1.5rem;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.review-card.teal {
    background: var(--gradient-success);
}

.review-card.blue {
    background: var(--gradient-3);
}

.review-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    align-items: center;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item span:first-child {
    font-weight: 500;
    opacity: 0.9;
    font-size: 0.9rem;
}

.review-item span:last-child {
    font-weight: 700;
    font-size: 1rem;
}

/* Loan Summary Card - Redesigned */
.loan-summary-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 0;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.loan-summary-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    text-align: center;
    color: var(--white);
}

.loan-summary-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.loan-summary-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.loan-summary-info p {
    opacity: 0.95;
    font-size: 0.95rem;
}

.loan-details {
    padding: 1.5rem;
}

.loan-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.loan-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.loan-detail-row span:first-child {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.loan-detail-row span:last-child {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.125rem;
}

.highlight-rate {
    color: var(--primary) !important;
}

/* Payment Section - Redesigned */
.payment-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid #fbbf24;
}

.payment-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.payment-header p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.payment-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.payment-amount .old-price {
    font-size: 1.25rem;
    color: var(--error);
    text-decoration: line-through;
    font-weight: 600;
}

.payment-amount .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.payment-amount .amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.payment-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.payment-feature {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}

.payment-feature i {
    color: var(--success);
    font-size: 1.25rem;
}

/* Buttons - Redesigned */
.pay-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1.125rem 2rem;
    border-radius: 3rem;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.pay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.pay-button:hover::before {
    left: 100%;
}

.pay-button:active {
    transform: scale(0.98);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    /* margin-top: 1.5rem; */
}

/* Information Summary Grid */
.info-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-summary-card {
    background: var(--white);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card-primary {
    border-top: 4px solid var(--primary);
}

.info-card-secondary {
    border-top: 4px solid var(--secondary);
}

.info-summary-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-summary-header svg {
    color: var(--primary);
    flex-shrink: 0;
}

.info-card-secondary .info-summary-header svg {
    color: var(--secondary);
}

.info-summary-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.info-summary-body {
    padding: 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.info-value {
    font-size: 0.9375rem;
    color: var(--dark);
    font-weight: 700;
    text-align: right;
}

.info-highlight {
    color: var(--primary);
    font-size: 1.125rem;
}

.info-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
}

/* EMI Selection Section */
.emi-selection-section {
    background: var(--light-gray);
    padding: 0.8rem;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
}

.emi-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.emi-section-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.emi-section-header p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* EMI Selection - Redesigned */
.newEmiBox {
    list-style: none;
    padding: 0;
    margin: 0;
}

.newEmiBox li {
    margin-bottom: 1rem;
    position: relative;
}

.newEmiBox li:last-child {
    margin-bottom: 0;
}

.emi-recommended {
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--shadow);
}

.newEmiBox label {
    cursor: pointer;
    display: block;
    padding: 0;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 1.125rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.newEmiBox label:active {
    transform: scale(0.98);
}

.newEmiBox input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.emi-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.emi-option-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.emi-tenure {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.emi-rate {
    font-size: 0.8125rem;
    color: var(--gray);
    font-weight: 500;
}

.emi-option-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.emi-amount {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.emi-label {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

/* Radio Button Styling */
.newEmiBox label::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: var(--white);
    transition: all 0.2s ease;
}

.newEmiBox label::after {
    content: '';
    position: absolute;
    left: 1.5625rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    transition: all 0.2s ease;
}

.newEmiBox input[type="radio"]:checked + label::before {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.newEmiBox input[type="radio"]:checked + label::after {
    transform: translateY(-50%) scale(1);
}

.newEmiBox input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.newEmiBox input[type="radio"]:checked + label .emi-option-content {
    padding-left: 3.5rem;
}

.newEmiBox .emi-option-content {
    padding-left: 3.5rem;
}

/* Bank Slider */
.bank-slider-container {
    background: var(--white);
    padding: 1.5rem 1rem;
    margin: 1rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.bank-slider-container h4 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.bank-slider-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.bank-slider-track:hover {
    animation-play-state: paused;
}

.bank-logo {
    flex-shrink: 0;
    padding: 0 1rem;
}

.bank-logo img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: all 0.3s ease;
}

.bank-logo img:hover {
    filter: grayscale(0);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Info Section */
.info-section {
    background: var(--white);
    padding: 2rem 1rem;
    margin: 1rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}

.info-card:active {
    transform: scale(0.98);
}

.info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    padding: 2rem 1rem;
    margin: 1rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.faq-list {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.faq-question {
    padding: 1.125rem;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.faq-question:active {
    background: var(--light-gray);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.125rem;
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Loan Cards for Offers */
.loan-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.loan-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e2e8f0;
}

.loan-card:active {
    transform: scale(0.98);
}

.loan-card .sponsored {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loan-card img.logo {
    width: 100px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
}

.loan-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1rem;
}

.loan-card .loan-details > div {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.loan-card .loan-details > div:last-child {
    border-bottom: none;
}

.loan-card .loan-details strong {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.loan-card .loan-details span {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.9375rem;
}

.loan-card .approval-rate {
    color: var(--success);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.mt-5 {
    margin-top: 0.3125rem;
}

.mt-10 {
    margin-top: 0.625rem;
}

.mt-15 {
    margin-top: 0.9375rem;
}

.mt-20 {
    margin-top: 1.25rem;
}

.mt-30 {
    margin-top: 1.875rem;
}

.mt-40 {
    margin-top: 2.5rem;
}

.mb-10 {
    margin-bottom: 0.625rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-10 {
    padding: 0.625rem;
}

.border {
    border: 1px solid #e2e8f0;
}

.text-FFF {
    color: var(--white);
}

.text-000 {
    color: var(--dark);
}

.text-success {
    color: var(--success);
}

.font-14 {
    font-size: 0.875rem;
}

.font-15 {
    font-size: 0.9375rem;
}

.font-18 {
    font-size: 1.125rem;
}

.font-22 {
    font-size: 1.375rem;
}

.font-weight-bold {
    font-weight: 700;
}

.text-decoration-underline {
    text-decoration: underline;
}

.display-block {
    display: block;
}

.display-inline {
    display: inline;
}

.display-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

.d-none {
    display: none;
}

.bg-FFF {
    background: var(--white);
}

.bg-transparent {
    background: transparent !important;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

/* Range Slider */
.range-slider__range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.range-slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.range-slider__range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

.range-slider__value {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
}

/* Modal */
.modal-content {
    border-radius: 1.5rem;
    border: none;
}

.modal-body {
    padding: 2rem 1rem;
}

/* Eligibility Box */
.eligibilityBox {
    position: relative;
}

/* Final Approval Step - Professional Redesign */
.approval-success-header {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    margin-bottom: 1rem;
}

.success-icon-wrapper {
    margin-bottom: 1rem;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon-wrapper svg {
    width: 56px;
    height: 56px;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

.approval-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.375rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.approval-subtitle {
    font-size: 0.9375rem;
    color: var(--gray);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Customer Info Compact */
.customer-info-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.compact-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.75rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.compact-info-card svg {
    color: var(--primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.compact-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.compact-label {
    font-size: 0.6875rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-value {
    font-size: 0.875rem;
    color: var(--dark);
    font-weight: 700;
}

/* Final Loan Approval Card - Redesigned */
.final-loan-approval-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1.25rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25);
}

.final-loan-approval-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.loan-approval-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.loan-approval-amount {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.amount-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amount-value {
    display: block;
    color: var(--white);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.loan-approval-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    position: relative;
    z-index: 1;
}

.approval-detail-item {
    text-align: center;
    padding: 0.75rem 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.6875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.detail-value {
    display: block;
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 700;
}

.detail-highlight {
    font-size: 1.0625rem;
    color: #fde047;
}

/* Processing Fee Section - Professional Redesign */
.processing-fee-section {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.fee-header {
    text-align: center;
    margin-bottom: 1rem;
}

.fee-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.fee-header p {
    font-size: 0.8125rem;
    color: var(--gray);
}

.fee-pricing {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f5f9 100%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.fee-original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fee-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.625rem;
}

.fee-currency {
    font-size: 1.375rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fee-amount {
    font-size: 2.75rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.fee-savings {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.fee-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.benefit-item {
    background: var(--white);
    padding: 0.75rem 0.625rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.benefit-item svg {
    color: var(--success);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.limited-offer-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    border: 2px dashed #ef4444;
    border-radius: 2rem;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem;
}

.limited-offer-badge svg {
    color: #ef4444;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Final Payment Button - Professional */
.final-payment-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1.125rem 1.75rem;
    border-radius: 3rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-decoration: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.final-payment-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.final-payment-button:active::before {
    width: 300px;
    height: 300px;
}

.final-payment-button svg {
    transition: transform 0.3s ease;
    width: 22px;
    height: 22px;
}

.final-payment-button:active {
    transform: scale(0.98);
}

.final-payment-button:active svg {
    transform: translateY(-2px);
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card,
.review-card,
.loan-summary-card,
.payment-section {
    animation: fadeIn 0.4s ease-out;
}

/* Tablet Styles */
@media (min-width: 640px) {
    .info-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .emi-selection-section {
        padding: 2rem;
    }

    .emi-option-content {
        padding: 1.5rem 2rem;
        padding-left: 4rem;
    }

    .emi-amount {
        font-size: 1.625rem;
    }

    .customer-info-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .approval-success-header {
        padding: 1.75rem 1rem 1.25rem;
    }

    .success-icon-wrapper svg {
        width: 64px;
        height: 64px;
    }

    .approval-title {
        font-size: 1.75rem;
    }

    .loan-approval-details {
        gap: 0.75rem;
    }

    .approval-detail-item {
        padding: 0.875rem 0.5rem;
    }

    .amount-value {
        font-size: 2.25rem;
    }

    .fee-amount {
        font-size: 3rem;
    }

    .fee-benefits {
        gap: 0.75rem;
    }

    .processing-fee-section {
        padding: 1.25rem;
    }

    .trust-badges-container {
        gap: 0.75rem;
    }

    .trust-badge {
        padding: 1rem 0.75rem;
    }

    .trust-badge-icon {
        width: 48px;
        height: 48px;
    }

    .trust-badge-icon svg {
        width: 24px;
        height: 24px;
    }

    .trust-badge-title {
        font-size: 0.9375rem;
    }

    .hero-container h2 {
        font-size: 1.75rem;
    }

    .progress-header {
        padding: 1.5rem;
        margin: -2rem 2rem 1.5rem;
    }

    .form-card {
        margin: 1.5rem 2rem;
        padding: 2rem;
    }

    .step-header h2 {
        font-size: 1.75rem;
    }

    .payment-amount .amount {
        font-size: 3rem;
    }

    .payment-features {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .loan-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .bank-slider-container,
    .info-section,
    .faq-section {
        margin: 1.5rem 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .info-summary-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .newEmiBox label:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    }

    .compact-info-card:hover {
        transform: translateX(3px);
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

    .final-loan-approval-card {
        padding: 1.5rem 1.25rem;
    }

    .amount-value {
        font-size: 2.5rem;
    }

    .benefit-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        border-color: var(--success);
    }

    .final-payment-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
    }

    .final-payment-button:hover svg {
        transform: translateY(-2px);
    }

    .processing-fee-section {
        padding: 1.5rem;
    }

    .trust-badges-container {
        gap: 1rem;
        max-width: 600px;
        margin: 1.5rem auto 0;
    }

    .trust-badge {
        padding: 1.25rem 1rem;
    }

    .trust-badge:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .trust-badge:hover::before {
        left: 100%;
    }

    .trust-badge:hover .trust-badge-icon {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.3);
    }

    .hero-section {
        padding: 2.5rem 2rem 3rem;
    }

    .logo {
        max-width: 200px;
    }

    .hero-container h2 {
        font-size: 2rem;
    }

    .progress-header {
        max-width: 900px;
        margin: -2.5rem auto 2rem;
        padding: 2rem;
    }

    .form-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .form-card {
        margin: 2rem 0;
        padding: 2.5rem;
    }

    .step-header h2 {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .loan-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .bank-slider-container,
    .info-section,
    .faq-section {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 3rem 2rem;
    }

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .loan-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .pay-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    }

    .newEmiBox label:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .pay-button {
        min-height: 48px;
    }

    .input-wrapper input,
    .input-wrapper select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .faq-question {
        min-height: 48px;
    }

    .newEmiBox label {
        min-height: 56px;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
