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

/* Navigation Arrows */
.step-navigation {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    transform: translateY(-50%);
}

.nav-arrow {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    pointer-events: auto;
}

.nav-arrow:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-back {
    left: 20px;
}

.nav-forward {
    right: 20px;
}

/* Comprehensive Mobile Fixes for Loan Journey */
@media (max-width: 768px) {
    /* Navigation arrows */
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-back {
        left: 10px;
    }

    .nav-forward {
        right: 10px;
    }

    /* Step indicators and icons - OPTIMIZED FOR MOBILE */
    .step-indicator .step-number,
    .step-number,
    .step-circle,
    .step-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        line-height: 28px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 0.3rem !important;
        background: #e5e7eb !important;
        color: #6b7280 !important;
        border: 2px solid #e5e7eb !important;
        text-align: center !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    .step-indicator .step-number.active,
    .step-number.active {
        background: #3b82f6 !important;
        border-color: #3b82f6 !important;
        color: white !important;
    }

    .step-indicator .step-number.completed,
    .step-number.completed {
        background: #10b981 !important;
        border-color: #10b981 !important;
        color: white !important;
    }

    /* Step text sizing */
    .step-text {
        font-size: 0.75rem !important;
        margin-top: 0.25rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    /* Navigation bar mobile */
    .navbar,
    .nav-container {
        padding: 0.5rem 0.75rem !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }

    .nav-logo {
        font-size: 0.9rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .loan-logo {
        height: 24px !important;
        width: auto !important;
        max-width: 80px !important;
    }

    .nav-steps {
        display: flex !important;
        gap: 0.3rem !important;
        overflow-x: auto !important;
        padding: 0.25rem 0 !important;
        justify-content: space-between !important;
    }

    .step-indicator {
        min-width: 50px !important;
        text-align: center !important;
        padding: 0.2rem !important;
        flex: 1 !important;
    }

    /* Form containers mobile */
    .form-container,
    .step-container {
        padding: 1rem !important;
        margin: 0.5rem !important;
        border-radius: 12px !important;
        background: white !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    }

    .form-step {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }

    /* Text sizing consistency */
    .form-step h2,
    .step-title {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .form-step h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .form-step p,
    .step-description {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    /* Input fields mobile */
    .form-group {
        margin-bottom: 1.2rem !important;
    }

    .form-label {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }

    .form-input,
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 1rem !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        background: white !important;
    }

    /* Button consistency */
    .btn,
    .btn-primary,
    .btn-secondary,
    .step-btn,
    button {
        padding: 12px 20px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border: none !important;
        text-decoration: none !important;
    }

    .btn-primary {
        background: #3b82f6 !important;
        color: white !important;
    }

    .btn-secondary {
        background: #f3f4f6 !important;
        color: #374151 !important;
        border: 1px solid #d1d5db !important;
    }

    /* Navigation buttons */
    .navigation-buttons,
    .step-navigation {
        display: flex !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
        padding: 0 !important;
    }

    .navigation-buttons .btn,
    .step-navigation .btn {
        flex: 1 !important;
    }

    /* Progress indicators */
    .progress-container {
        margin: 1rem 0 !important;
        padding: 0.5rem !important;
    }

    .progress-bar {
        height: 4px !important;
        background: #e5e7eb !important;
        border-radius: 2px !important;
        overflow: hidden !important;
    }

    .progress-fill {
        height: 100% !important;
        background: #3b82f6 !important;
        transition: width 0.3s ease !important;
    }

    /* Modal and popup fixes */
    .exit-confirmation-popup .popup-content,
    .modal-content {
        min-width: auto !important;
        width: 90% !important;
        max-width: 400px !important;
        margin: 20px auto !important;
        padding: 1.5rem !important;
    }

    /* OTP input styling */
    .otp-container {
        display: flex !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        margin: 1rem 0 !important;
    }

    .otp-input {
        width: 45px !important;
        height: 45px !important;
        text-align: center !important;
        font-size: 1.2rem !important;
        border: 2px solid #d1d5db !important;
        border-radius: 8px !important;
        background: white !important;
    }

    .otp-input:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
    }

    /* Radio button and checkbox styling */
    .radio-group,
    .checkbox-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin: 1rem 0 !important;
    }

    .radio-item,
    .checkbox-item {
        display: flex !important;
        align-items: center !important;
        gap: 0.8rem !important;
        padding: 12px !important;
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        cursor: pointer !important;
    }

    .radio-item input[type="radio"],
    .checkbox-item input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }

    /* Loading states */
    .loading-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
    }

    .loading-spinner {
        width: 32px !important;
        height: 32px !important;
        border: 3px solid #f3f4f6 !important;
        border-top: 3px solid #3b82f6 !important;
        border-radius: 50% !important;
        animation: spin 1s linear infinite !important;
    }

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

    /* Error states */
    .error-message {
        color: #ef4444 !important;
        font-size: 0.875rem !important;
        margin-top: 0.25rem !important;
        display: block !important;
    }

    .form-input.error,
    .form-control.error {
        border-color: #ef4444 !important;
    }

    /* Success states */
    .success-message {
        color: #10b981 !important;
        font-size: 0.875rem !important;
        margin-top: 0.25rem !important;
        display: block !important;
    }

    /* Image optimizations */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .loan-logo,
    .step-icon img {
        height: 28px !important;
        width: auto !important;
        max-width: 120px !important;
    }
}

/* Exit Confirmation Popup */
.exit-confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.exit-confirmation-popup .popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    min-width: 400px;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.exit-confirmation-popup .popup-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.exit-confirmation-popup .popup-header h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin: 0;
}

.exit-confirmation-popup .popup-body {
    padding: 2rem;
}

.exit-confirmation-popup .popup-body p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.popup-actions {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.popup-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.popup-btn.secondary:hover {
    background: #cbd5e0;
}

.popup-btn.primary {
    background: #3b82f6;
    color: white;
}

.popup-btn.primary:hover {
    background: #2563eb;
}

/* Logo styling */
.nav-logo {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

body {
    font-family: Garamond, Georgia, 'Times New Roman', serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1a202c;
    line-height: 1.6;
}

/* New Layout Styles */
.loan-application-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 2rem;
    min-height: 100vh;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.left-section {
    flex: 1.2;
    min-width: 500px;
    max-width: 700px;
}

.right-section {
    flex: 1;
    min-width: 450px;
    max-width: 600px;
    min-height: 600px;
}

.loan-info-card {
    background: white;
    padding: 3.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: sticky;
    top: 2rem;
    height: fit-content;
    width: 100%;
}

.loan-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
    min-height: 250px;
    object-fit: cover;
}

.interest-rate-card {
    background: linear-gradient(135deg, #10b981 0%, #16a34a 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.rate-icon {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    font-weight: bold;
}

.recaptcha-group {
    margin: 1.5rem 0;
}

/* Enhanced OTP Section */
.resend-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resend-btn-large {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.resend-btn-large:hover {
    background: #2563eb;
}

.timer-large {
    font-size: 1.1rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Form Sections */
.loan-details-header {
    text-align: center;
    margin-bottom: 2rem;
}

.employment-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.form-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

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

.form-section h4 {
    color: #374151;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

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

.checkbox-group {
    margin: 1.5rem 0;
}

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

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

@media (max-width: 1200px) {
    .loan-application-layout {
        gap: 2rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .left-section {
        min-width: 400px;
    }

    .right-section {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .loan-application-layout {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
        margin-top: 1rem;
    }

    .left-section, .right-section {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }

    .form-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

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

    /* Hide the business loan image and right section content on mobile */
    .loan-image {
        display: none !important;
    }

    .right-section {
        display: none !important;
    }

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

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    /* Reduce form header spacing */
    .form-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Hide form header on mobile */
    .mobile-hidden {
        display: none !important;
    }

    /* Mobile header styles */
    .nav-logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .logo-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .journey-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #666 !important;
    }

    .mobile-header-text {
        margin-top: 0.25rem !important;
    }

    .mobile-header-text h2 {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        margin: 0 0 0.25rem 0 !important;
        line-height: 1.3 !important;
    }

    .mobile-header-text p {
        font-size: 0.8rem !important;
        color: #666 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }

    /* Mobile header buttons */
    .mobile-header-buttons {
        position: absolute !important;
        top: 50% !important;
        right: 1rem !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        gap: 0.4rem !important;
        align-items: center !important;
        z-index: 10002 !important;
    }

    .mobile-appointment-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        height: 32px !important;
        border-radius: 4px !important;
        background: #16a34a !important;
        color: white !important;
        border: 1px solid #16a34a !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        min-width: 120px !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-appointment-btn:hover {
        background: #15803d !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-body {
    display: flex;
    padding: 0;
    min-height: 400px;
}

.modal-left {
    flex: 1;
    padding: 2rem;
    background: white;
}

.modal-left h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: #374151;
    font-weight: 600;
}

.modal-right {
    flex: 0 0 300px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    text-align: center;
}

.modal-image i {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.modal-image h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 700;
}

.modal-image p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.modal-image ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-image li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.modal-image li::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    margin-right: 0.5rem;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 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 textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 1% auto;
    }

    .modal-body {
        flex-direction: column;
        min-height: auto;
    }

    .modal-right {
        flex: none;
        padding: 1.5rem;
    }

    .modal-left {
        padding: 1.5rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

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

    .modal-image i {
        font-size: 3rem;
    }

    .close {
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

/* Confirmation Page Styles */
.confirmation-section {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #16a34a;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.confirmation-section h2 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.confirmation-message {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.application-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.application-summary h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

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

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

.summary-item .label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.summary-item .value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.next-steps-mobile {
    margin-bottom: 2rem;
    text-align: left;
}

.next-steps-mobile h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.timeline-content h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.timeline-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.contact-item i {
    font-size: 1.25rem;
    color: #3b82f6;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

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

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
}

.primary-btn {
    background: #16a34a;
    color: white;
    border: none;
}

.primary-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.secondary-btn {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.secondary-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .confirmation-section {
        padding: 1rem;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .contact-item {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 280px;
    }

    .confirmation-section h2 {
        font-size: 1.5rem;
    }

    .success-icon i {
        font-size: 3rem;
    }
}

    .form-header p {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Further reduce spacing for very small screens */
    .form-card, .loan-info-card {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .country-code {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .phone-input-group input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .continue-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin-top: 1rem;
    }

    /* Reduce form header spacing further */
    .form-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .form-header p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    /* Compact step indicators */
    .step-indicator {
        min-width: 45px !important;
        padding: 0.1rem !important;
    }

    /* Reduce benefit card spacing */
    .benefit-card {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .benefits-grid {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    /* Hide decorative elements that take up space */
    .interest-rate-card {
        padding: 1rem;
        margin-top: 0.5rem;
    }

    /* Compact mobile form section */
    .mobile-form-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Reduce reCAPTCHA spacing */
    .recaptcha-group {
        margin: 1rem 0;
    }

    /* Make main content more compact */
    .main-content {
        padding-top: 0.5rem;
    }
}
}

/* Form Card Styling */
.form-card {
    background: white;
    padding: 3.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    width: 100%;
}

.form-header h1 {
    color: #1e40af;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

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

.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.phone-input-group:focus-within {
    border-color: #3b82f6;
}

.country-code {
    background: #f9fafb;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: #374151;
    border-right: 1px solid #e5e7eb;
    font-size: 1.1rem;
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
}

.continue-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1.3rem 2.5rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.continue-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* reCAPTCHA Styling */
.recaptcha-group {
    margin: 1.5rem 0;
}

.recaptcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border: 2px solid #d3d3d3;
    border-radius: 4px;
    padding: 12px 16px;
    max-width: 304px;
    min-height: 78px;
    font-family: Arial, sans-serif;
}

.recaptcha-checkbox-section {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    gap: 8px;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    color: transparent;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}

.recaptcha-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.recaptcha-icon {
    width: 36px;
    height: 36px;
    background: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.recaptcha-refresh {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.recaptcha-branding {
    font-size: 10px;
    color: #666;
}

.recaptcha-title {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.recaptcha-links {
    font-size: 8px;
}

.recaptcha-link {
    color: #4285f4;
    text-decoration: none;
}

.recaptcha-link:hover {
    text-decoration: underline;
}

/* Captcha Styling */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.captcha-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
```text
border-radius: 4px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    min-width: 100px;
    text-align: center;
}

.captcha-refresh {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.captcha-refresh:hover {
    background: #5a6268;
}

/* Custom reCAPTCHA Styles */
.recaptcha-group {
    margin: 1rem 0;
}

.custom-recaptcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-recaptcha:hover {
    border-color: #3b82f6;
    background: #f0f8ff;
}

.recaptcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.recaptcha-checkbox.loading {
    border-color: #3b82f6;
    animation: spin 1s linear infinite;
}

.recaptcha-checkbox.verified {
    background: #16a34a;
    border-color: #16a34a;
}

.recaptcha-checkbox.verified::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

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

@keyframes checkmark-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom Captcha Styling */
.custom-captcha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border: 2px solid #d3d3d3;
    border-radius: 4px;
    padding: 12px 16px;
    max-width: 304px;
    min-height: 78px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-captcha:hover {
    background: #f5f5f5;
}

.captcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 12px;
}

.captcha-checkbox.loading {
    border-color: #4285f4;
    background: #f0f8ff;
}

.captcha-checkbox.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #4285f4;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.captcha-checkbox.verified {
    background: #00a651;
    border-color: #00a651;
}

.checkmark {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.captcha-checkbox.verified .checkmark {
    opacity: 1;
    transform: scale(1);
    animation: checkmark-bounce 0.6s ease;
}

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

@keyframes checkmark-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.captcha-text {
    flex: 1;
    font-weight: 400;
    color: #222;
    font-size: 14px;
}

.captcha-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #666;
}

.privacy-terms {
    font-size: 8px;
}

.privacy-terms a {
    color: #4285f4;
    text-decoration: none;
}

.privacy-terms a:hover {
    text-decoration: underline;
}

/* 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: 1.1rem;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus, 
input[type="number"]:focus, 
input[type="password"]:focus, 
input[type="date"]:focus, 
textarea:focus, 
select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* DESKTOP ONLY - Hide header text for loan products */
@media (min-width: 769px) {
    .nav-logo .journey-title,
    .nav-logo .mobile-header-text,
    .nav-logo .mobile-header-text h2,
    .nav-logo .mobile-header-text p,
    .logo-content .journey-title,
    .logo-content .mobile-header-text,
    .logo-content .mobile-header-text h2,
    .logo-content .mobile-header-text p {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .nav-logo {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .nav-logo .loan-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #104865;
}

.loan-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Step Navigation */
.nav-steps {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-indicator.active,
.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-number.active {
    background: #3b82f6;
    color: white;
}

.step-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.step-indicator.active .step-text {
    color: #3b82f6;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0rem;
}

.step-content {
    display: none;
}

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

/* Step 1: Product Selection */
.product-header {
    text-align: center;
    margin-bottom: 3rem;
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-header h1 {
    font-size: 2.5rem;
    color: #104865;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: #104865;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.phone-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.phone-section h2 {
    font-size: 1.75rem;
    color: #104865;
    margin-bottom: 2rem;
    font-weight: 600;
}

.phone-input-container {
    display: flex;
    max-width: 400px;
    margin: 0 auto 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: #104865;
}

.country-code {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-right: 1px solid #e2e8f0;
    font-weight: 600;
    color: #104865;
    display: flex;
    align-items: center;
}

#mobileNumber {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'EB Garamond', serif;
}

.verification-options {
    margin: 2rem 0;
}

.human-verification {
    margin-bottom: 1rem;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #16a34a;
    border-color: #16a34a;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#captchaText {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: #104865;
    text-decoration: line-through;
    text-decoration-color: #16a34a;
}

.refresh-captcha {
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.refresh-captcha:hover {
    color: #104865;
}

#captchaInput {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-family: 'EB Garamond', serif;
    text-align: center;
    max-width: 150px;
}

.continue-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.continue-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.continue-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Step 2: OTP Verification */
.verification-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.verification-section h2 {
    font-size: 1.75rem;
    color: #104865;
    margin-bottom: 1rem;
    font-weight: 600;
}

.otp-input-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: nowrap;
}

.otp-input-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: nowrap;
}

.otp-digit {
    width: 120px;
    height: 120px;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 600;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    outline: none;
    font-family: 'EB Garamond', serif;
    transition: border-color 0.3s ease;
    background: white;
    color: #1a202c;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-digit:focus {
    border-color: #104865;
}

.resend-section {
    margin: 2rem 0;
}

.resend-btn {
    background: none;
    border: none;
    color: #16a34a;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'EB Garamond', serif;
}

.timer {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Step 3: EMI Calculator */
.emi-calculator {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.emi-calculator h2 {
    font-size: 2rem;
    color: #104865;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.emi-calculator > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: block;
    font-weight: 600;
    color: #104865;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.slider-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.slider-value {
    text-align: center;
    font-weight: 600;
    color: #104865;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
}

.result-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emi-result {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
}

.emi-result h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.emi-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.breakdown {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breakdown-item:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #104865;
}

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

.skip-btn {
    background: none;
    border: 2px solid #cbd5e1;
    color: #64748b;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    border-color: #94a3b8;
    color: #475569;
}

/* Step 4: Personal Details */
.details-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    color: #104865;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.details-form h2 {
    font-size: 2rem;
    color: #104865;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.details-form > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #104865;
}

.terms-section {
    margin: 2rem 0;
    text-align: center;
}

.terms-section a {
    color: #16a34a;
    text-decoration: none;
}

.terms-section a:hover {
    text-decoration: underline;
}

/* Step 5: Success */
.success-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

.success-section h2 {
    font-size: 2rem;
    color: #104865;
    margin-bottom: 1rem;
    font-weight: 600;
}

.application-details {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.next-steps {
    text-align: left;
    margin: 2rem 0;
}

.next-steps h3 {
    color: #104865;
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.next-steps li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

.secondary-btn {
    background: none;
    border: 2px solid #16a34a;
    color: #16a34a;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #16a34a;
    color: white;
}

/* Custom Popup */
.custom-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.custom-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    max-width: 400px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.popup-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    color: #104865;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.close-popup:hover {
    background: #f1f5f9;
}

.popup-body {
    padding: 1.5rem 2rem;
}

.popup-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: right;
}

.popup-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'EB Garamond', serif;
    transition: background 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-steps {
        gap: 1rem;
    }

    .step span {
        display: none;
    }

    .container {
        padding: 1rem;
    }

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

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

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

    .action-buttons {
        flex-direction: column;
    }

    .otp-input-container {
        gap: 0.5rem;
    }

    .otp-digit {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .product-header h1 {
        font-size: 2rem;
    }

    .emi-amount {
        font-size: 2rem;
    }

    .loan-amount-grid {
        grid-template-columns: 1fr;
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bank-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .employment-option {
        flex-direction: column;
        text-align: center;
    }
}

/* Home Loan Specific Styles */
.loan-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.amount-option {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.amount-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.amount-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.amount-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.city-option {
    padding: 15px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 0.95rem;
}

.city-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.city-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.show-more-cities, .show-more-banks {
    text-align: center;
    color: #3b82f6;
    cursor: pointer;
    margin-bottom: 20px;
    text-decoration: underline;
}

.show-more-cities:hover, .show-more-banks:hover {
    color: #2563eb;
}

.timeline-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.timeline-option {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.timeline-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.timeline-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.timeline-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.employment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.employment-option {
    padding: 25px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.employment-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.employment-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.employment-icon {
    font-size: 2rem;
}

.employment-details {
    flex: 1;
}

.employment-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    display: block;
    margin-bottom: 5px;
}

.employment-desc {
    font-size: 0.9rem;
    color: #6b7280;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bank-option {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bank-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.bank-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.bank-logo {
    font-size: 2rem;
}

.bank-name {
    font-weight: 600;
    color: #1f2937;
}

.loan-offers-section {
    padding: 40px 0;
    text-align: center;
}

.loan-offers-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.offers-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 40px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.offer-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
}

.offer-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.bank-logo-large {
    font-size: 2.5rem;
}

.bank-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #1f2937;
}

.offer-type {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.offer-details {
    margin-bottom: 20px;
}

.offer-details .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.offer-details .detail-item:last-child {
    border-bottom: none;
}

.offer-details .label {
    color: #6b7280;
    font-size: 0.9rem;
}

.offer-details .value {
    font-weight: 600;
    color: #1f2937;
}

.employment-section {
    display: none;
}

.employment-section.active {
    display: block;
}

.apply-btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: #2563eb;
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cancel-btn {
    padding: 10px 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.cancel-btn:hover {
    background: #4b5563;
}

.submit-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #2563eb;
}

.contact-info {
    margin: 30px 0;
    text-align: center;
}

.contact-text {
    color: #6b7280;
    margin-bottom: 5px;
}

.email, .phone {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.next-steps {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 20px 0;
}

.download-btn {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #059669;
}

/* Loan Against Property Specific Styles */
.feature-list {
    margin-top: 20px;
}

.feature-item {
    color: white;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.terms-section {
    margin: 20px 0;
}

.terms-text {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 10px;
}

.terms-text a {
    color: #3b82f6;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.proceed-btn {
    width: 100%;
    padding: 15px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.proceed-btn:hover {
    background: #d97706;
}

.proceed-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.back-btn {
    display: inline-block;
    color: #3b82f6;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 1rem;
    text-decoration: none;
}

.back-btn:hover {
    color: #2563eb;
    text-decoration: underline;
}

.thank-you-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.thank-you-header {
    background: #10b981;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    border-radius: 8px 8px 0 0;
}

.thank-you-content {
    background: white;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    line-height: 1.6;
}

.thank-you-content p {
    margin-bottom: 15px;
    color: #374151;
}

.thank-you-content strong {
    color: #1f2937;
}

.contact-details {
    margin: 20px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
}

.contact-details p {
    margin-bottom: 8px;
}

.contact-details a {
    color: #3b82f6;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.regards {
    margin: 25px 0;
    color: #3b82f6;
}

/* Left section styling for LAP */
.left-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px 0 0 12px;
}

.left-section .product-header h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.left-section .product-description {
    color: #e0e7ff;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Personal Loan Layout Structure */
.loan-application-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: start;
    min-height: 80vh;
    padding: 0px 0;
}

.left-section .form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-header h1 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'EB Garamond', serif;
}

.form-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.mobile-form-section h2 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'EB Garamond', serif;
}

.phone-input-group {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.country-code {
    background: #f3f4f6;
    padding: 12px 15px;
    border-right: 1px solid #d1d5db;
    color: #374151;
    font-weight: 500;
}

.phone-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.continue-btn {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.continue-btn:hover {
    background: #059669;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.benefit-icon.green {
    background: #10b981;
}

.benefit-card h3 {
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'EB Garamond', serif;
}

.benefit-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.right-section .loan-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.loan-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.interest-rate-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.percentage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    font-weight: bold;
}

.interest-rate-card h3 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: 'EB Garamond', serif;
}

.interest-rate-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Override for mobile responsiveness */
@media (max-width: 768px) {
    .loan-application-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .left-section .form-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .right-section .loan-info-card {
        padding: 20px;
    }

    .left-section {
        border-radius: 12px 12px 0 0;
        padding: 30px 20px;
    }

    .left-section .product-header h1 {
        font-size: 1.8rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .thank-you-section {
        padding: 20px 10px;
    }

    .thank-you-content {
        padding: 20px;
    }
}

/* Text Input Captcha styles */
.captcha-group {
    margin-bottom: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-display {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #d1d5db;
    padding: 12px 20px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #374151;
    border-radius: 6px;
    user-select: none;
    min-width: 120px;
    text-align: center;
}

.captcha-refresh {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.captcha-refresh:hover {
    background: #2563eb;
}

.captcha-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

/* Employment tabs */
.employment-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.employment-section {
    display: none;
}

.employment-section.active {
    display: block;
}

/* Blue step highlighting */
.step.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.step.active .step-circle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.step.active span {
    color: white;
    font-weight: 600;
}

/* Custom reCAPTCHA styles */
.custom-recaptcha {
    border: 2px solid #d3d3d3;
    border-radius: 3px;
    background: #f9f9f9;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    width: fit-content;
    min-width: 300px;
}

.custom-recaptcha:hover {
    border-color: #4285f4;
    background: #f0f8ff;
}

.recaptcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 12px;
}

.recaptcha-checkbox.loading {
    border-color: #4285f4;
    background: #f0f8ff;
}

.recaptcha-checkbox.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #4285f4;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.recaptcha-checkbox.verified {
    background: #00a651;
    border-color: #00a651;
}

.checkmark {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.recaptcha-checkbox.verified .checkmark {
    opacity: 1;
    transform: scale(1);
    animation: checkmark-bounce 0.6s ease;
}

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

@keyframes checkmark-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.recaptcha-text {
    flex: 1;
    font-weight: 400;
    color: #222;
}

.recaptcha-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 10px;
    color: #999;
    text-align: right;
}

.logo-text > div:first-child {
    font-weight: 500;
    color: #666;
    margin-bottom: 2px;
}

.privacy-terms {
    font-size: 8px;
}

.privacy-terms a {
    color: #999;
    text-decoration: none;
}

.privacy-terms a:hover {
    text-decoration: underline;
}
/* CRITICAL FIXES - FINAL OVERRIDES */
.recaptcha-checkbox.verified {
    background: #00a651 !important;
    border-color: #00a651 !important;
}

.recaptcha-checkbox.verified .checkmark {
    opacity: 1 !important;
    transform: scale(1) !important;
    animation: checkmark-bounce 0.6s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.recaptcha-checkbox.verified .checkmark svg {
    display: block !important;
    opacity: 1 !important;
}

.recaptcha-checkbox.verified .checkmark svg path {
    stroke: white !important;
    fill: none !important;
}

/* OTP Layout Fix for All Products */
.otp-input-container, .otp-input-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin: 2rem 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

/* Mobile OTP Fix */
@media (max-width: 768px) {
    .otp-digit {
        width: 80px !important;
        height: 80px !important;
        font-size: 2.5rem !important;
    }
}

/* COMPREHENSIVE MOBILE RESPONSIVENESS - LOAN JOURNEYS */

/* Enhanced Mobile Layout for all loan application pages */
@media (max-width: 768px) {
    /* Main content padding for mobile */
    .main-content {
        margin-top: 0px !important;
        padding-top: 20px !important;
        padding-bottom: 2rem !important;
    }

    /* Container adjustments */
    .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }

    /* Mobile-First Layout Structure */
    .loan-application-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 100vh !important;
    }

    /* Step Navigation - ALWAYS AT TOP */
    .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: white !important;
        padding: 0.5rem 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        order: 1 !important;
    }

    .nav-steps {
        display: flex !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        margin: 0.5rem 1rem !important;
        order: 1 !important;
    }

    .step-indicator {
        flex: 1 !important;
        max-width: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .step-number {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
        margin-bottom: 0.2rem !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid #e5e7eb !important;
        background: white !important;
        color: #6b7280 !important;
    }

    .step-number.active {
        background: #3b82f6 !important;
        border-color: #3b82f6 !important;
        color: white !important;
    }

    .step-number.completed {
        background: #10b981 !important;
        border-color: #10b981 !important;
        color: white !important;
    }

    .step-text {
        font-size: 0.6rem !important;
        color: #6b7280 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 70px !important;
        line-height: 1.1 !important;
    }

    /* Form Content - SECOND PRIORITY */
    .left-section {
        order: 2 !important;
        background: white !important;
        padding: 1rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        flex: 1 !important;
    }

    /* Hide or minimize right section content initially */
    .right-section {
        order: 3 !important;
        background: #f8f9fa !important;
        padding: 1rem !important;
        margin-top: 1rem !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* Form card mobile styling - PRIORITIZED FOR VISIBILITY */
    .form-card {
        padding: 1rem !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: white !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .form-header {
        padding: 1rem !important;
        background: white !important;
        border-bottom: 1px solid #e5e7eb !important;
        margin-bottom: 1rem !important;
        position: sticky !important;
        top: 60px !important;
        z-index: 100 !important;
    }

    .form-header h1 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        color: #1f2937 !important;
        text-align: center !important;
    }

    .form-header p {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
        color: #6b7280 !important;
        text-align: center !important;
    }

    /* Mobile Form Steps Container */
    .mobile-form-container {
        padding: 1rem !important;
        background: white !important;
        min-height: calc(100vh - 120px) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Step Content Area */
    .step-content {
        flex: 1 !important;
        padding-bottom: 80px !important; /* Space for continue button */
    }

    /* Form groups mobile */
    .form-group {
        margin-bottom: 1.2rem !important;
    }

    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
        display: block !important;
        font-weight: 600 !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        padding: 0.9rem !important;
        font-size: 1rem !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        background: white !important;
        box-sizing: border-box !important;
    }

    /* Form row mobile - stack vertically */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Continue button mobile - FIXED AT BOTTOM */
    .continue-btn {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 0 !important;
        margin: 0 !important;
        font-weight: 600 !important;
        background: #16a34a !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
        z-index: 999 !important;
        transition: all 0.3s ease !important;
    }

    .continue-btn:hover,
    .continue-btn:active {
        background: #15803d !important;
        transform: none !important;
    }

    /* Alternative continue button for forms */
    .mobile-continue-btn {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        border-radius: 0 !important;
        margin: 0 !important;
        font-weight: 600 !important;
        background: #16a34a !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
        z-index: 999 !important;
    }

    /* Phone input group mobile */
    .phone-input-group {
        flex-direction: row !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin-bottom: 1rem !important;
    }

    .country-code {
        padding: 0.9rem 1rem !important;
        background: #f8f9fa !important;
        border-right: 1px solid #d1d5db !important;
        font-size: 1rem !important;
        min-width: 60px !important;
        text-align: center !important;
    }

    .phone-input-group input {
        flex: 1 !important;
        border: none !important;
        outline: none !important;
        padding: 0.9rem !important;
        font-size: 1rem !important;
    }

    /* OTP container mobile */
    .otp-container {
        display: flex !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin: 1.5rem 0 !important;
        flex-wrap: nowrap !important;
    }

    .otp-digit {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        text-align: center !important;
        border: 2px solid #d1d5db !important;
        border-radius: 6px !important;
        background: white !important;
    }

    .otp-digit:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
    }

    /* reCAPTCHA mobile */
    .custom-recaptcha {
        width: 100% !important;
        min-width: unset !important;
        padding: 1rem !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }

    .recaptcha-checkbox {
        width: 24px !important;
        height: 24px !important;
        margin-right: 0.8rem !important;
    }

    /* Navigation mobile */
    .navbar {
        padding: 0.5rem 0 !important;
    }

    .nav-container {
        padding: 0 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .nav-logo {
        font-size: 0.9rem !important;
        align-self: flex-start !important;
    }

    .nav-logo span {
        font-size: 0.8rem !important;
    }

    .loan-logo {
        width: 30px !important;
        height: 30px !important;
    }

    /* Step navigation mobile */
    .nav-steps {
        display: flex !important;
        gap: 0.3rem !important;
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .step-indicator {
        flex: 1 !important;
        min-width: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid #e5e7eb !important;
        background: white !important;
        color: #6b7280 !important;
    }

    .step-number.active {
        background: #3b82f6 !important;
        border-color: #3b82f6 !important;
        color: white !important;
    }

    .step-number.completed {
        background: #10b981 !important;
        border-color: #10b981 !important;
        color: white !important;
    }

    .step-text {
        font-size: 0.7rem !important;
        color: #6b7280 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60px !important;
    }

    /* Loan info card mobile - MOVED TO BOTTOM */
    .loan-info-card {
        position: static !important;
        margin: 2rem 0 0 0 !important;
        padding: 1rem !important;
        border-radius: 12px 12px 0 0 !important;
        text-align: center !important;
        background: #f8f9fa !important;
        border-top: 2px solid #e5e7eb !important;
    }

    /* Compact loan info for mobile */
    .loan-info-summary {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #f0f9ff !important;
        padding: 0.8rem !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
        border-left: 4px solid #3b82f6 !important;
    }

    .loan-amount-display {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
    }

    .interest-rate-display {
        font-size: 0.9rem !important;
        color: #16a34a !important;
        font-weight: 600 !important;
    }

    .loan-image img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 120px !important;
        margin-bottom: 0.8rem !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }

    .interest-rate-card {
        padding: 0.8rem !important;
        margin-top: 0.5rem !important;
        border-radius: 8px !important;
        background: white !important;
    }

    .percentage-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin: 0 auto 0.5rem !important;
    }

    /* Collapsible loan details for mobile */
    .loan-details-toggle {
        background: #3b82f6 !important;
        color: white !important;
        border: none !important;
        padding: 0.5rem 1rem !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
        cursor: pointer !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    .loan-details-expanded {
        display: none !important;
        margin-top: 1rem !important;
        padding: 1rem !important;
        background: white !important;
        border-radius: 8px !important;
        border: 1px solid #e5e7eb !important;
    }

    .loan-details-expanded.show {
        display: block !important;
    }

    /* Success section mobile */
    .success-section {
        padding: 2rem 1rem !important;
        margin: 1rem 0 !important;
        border-radius: 12px !important;
    }

    .success-icon i {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }

    .application-details {
        margin: 1.5rem 0 !important;
    }

    .detail-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.3rem !important;
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .detail-item .label {
        font-size: 0.8rem !important;
        color: #6b7280 !important;
        font-weight: 500 !important;
    }

    .detail-item .value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #111827 !important;
        text-align: right !important;
    }

    /* Action buttons mobile */
    .action-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-top: 1.5rem !important;
    }

    .action-buttons button {
        width: 100% !important;
        padding: 0.9rem !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }

    /* Benefits grid mobile */
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    .benefit-card {
        padding: 1rem !important;
        border-radius: 8px !important;
        text-align: center !important;
    }

    .benefit-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        margin: 0 auto 0.8rem !important;
    }

    /* Employment tabs mobile */
    .employment-tabs {
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
        border-bottom: none !important;
    }

    .tab-btn {
        width: 100% !important;
        padding: 1rem !important;
        text-align: center !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        background: white !important;
    }

    .tab-btn.active {
        background: #3b82f6 !important;
        color: white !important;
        border-color: #3b82f6 !important;
    }

    /* Error messages mobile */
    .error-message {
        font-size: 0.8rem !important;
        margin-top: 0.5rem !important;
        padding: 0.5rem !important;
        border-radius: 4px !important;
        background: #fef2f2 !important;
        color: #dc2626 !important;
        border: 1px solid #fecaca !important;
    }

    /* Message display mobile */
    .message-display {
        top: 100px !important;
        right: 1rem !important;
        left: 1rem !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    /* Navigation arrows hide on mobile */
    .step-navigation {
        display: none !important;
    }

    /* Mobile Progress Bar */
    .mobile-progress-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        background: #e5e7eb !important;
        z-index: 1001 !important;
    }

    .mobile-progress-fill {
        height: 100% !important;
        background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%) !important;
        transition: width 0.3s ease !important;
        width: 0% !important;
    }

    /* Form Step Organization */
    .form-step {
        display: none !important;
        padding: 1rem !important;
        margin-bottom: 80px !important; /* Space for fixed button */
    }

    .form-step.active {
        display: block !important;
    }

    /* Mobile Form Input Enhancements */
    .form-group {
        margin-bottom: 1.5rem !important;
        background: white !important;
        padding: 0 !important;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        background: white !important;
        transition: border-color 0.3s ease !important;
        box-sizing: border-box !important;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }

    /* Mobile Error States */
    .form-group.error input,
    .form-group.error select {
        border-color: #dc2626 !important;
        background: #fef2f2 !important;
    }

    .error-message {
        color: #dc2626 !important;
        font-size: 0.8rem !important;
        margin-top: 0.3rem !important;
        padding: 0.3rem 0.5rem !important;
        background: #fef2f2 !important;
        border-radius: 4px !important;
        border-left: 3px solid #dc2626 !important;
    }

    /* OTP Mobile Enhancements */
    .otp-section {
        padding: 2rem 1rem !important;
        text-align: center !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        margin: 1rem 0 !important;
    }

    .otp-container {
        display: flex !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin: 2rem 0 !important;
    }

    .otp-digit {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        text-align: center !important;
        border: 2px solid #d1d5db !important;
        border-radius: 8px !important;
        background: white !important;
        font-weight: 600 !important;
    }

    .otp-digit:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
        outline: none !important;
    }

    /* Mobile reCAPTCHA */
    .custom-recaptcha {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
    }

    /* Success Page Mobile */
    .success-section {
        padding: 2rem 1rem 100px 1rem !important; /* Extra bottom padding for fixed button */
        margin: 0 !important;
        border-radius: 0 !important;
        background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%) !important;
    }

    .success-icon {
        font-size: 3rem !important;
        color: #16a34a !important;
        margin-bottom: 1rem !important;
    }

    .application-details {
        background: white !important;
        border-radius: 12px !important;
        padding: 1.5rem !important;
        margin: 1.5rem 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }

    .detail-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .detail-item:last-child {
        border-bottom: none !important;
    }

    .detail-item .label {
        font-size: 0.9rem !important;
        color: #6b7280 !important;
        font-weight: 500 !important;
    }

    .detail-item .value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #111827 !important;
        text-align: right !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .form-card {
        padding: 1rem !important;
    }

    .form-header h1 {
        font-size: 1.2rem !important;
    }

    .loan-info-card {
        padding: 1rem !important;
    }

    .otp-digit {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .step-number {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
    }

    .step-text {
        font-size: 0.6rem !important;
        max-width: 50px !important;
    }

    .continue-btn {
        padding: 0.9rem !important;
        font-size: 0.95rem !important;
    }

    .nav-logo span {
        display: none !important;
    }
}