/* Loan Eligibility Hero Section - Unique Class Names */
.loan-hero-section {
    padding-left: 8rem;
    padding-right: 8rem;
    background: linear-gradient(90deg, #FCF8F8 0%, #FAF7F9 30%, #ECF3FF 100%);
}

.loan-hero-container {
    display: flex;
    position: relative;
    gap: 2.5rem;
    justify-content: space-around;
    align-items: center; /* Changed from flex-start to center */
    padding-top: 4rem;
    padding-bottom: 3.5rem;
    width: 100%;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.loan-hero-content {
    display: flex;
    z-index: 0;
    flex-direction: column;
    flex: 1 1 0%;
    flex-shrink: 1;
    align-items: flex-start;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    flex-basis: 0;
    min-width: 15rem;
    max-width: 600px;
    z-index: 1;
}

.loan-content-wrapper {
    align-self: stretch;
    width: 100%;
}

.loan-heading-container {
    max-width: 100%;
    width: 584px;
}

.loan-verification-text {
    font-size: 1.125rem;
    line-height: 2rem;
    color: #F05436;
}

.loan-main-heading {
    margin-top: 0.375rem;
    font-size: 2.7rem;
    font-weight: 700;
    color: #27272a;
}

.loan-heading-line {
    line-height: 56px;
}

.loan-heading-accent {
    line-height: 56px;
    color: #F05436;
}

.loan-description {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #27272a;
}

.loan-cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.98rem;
    margin-top: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.75;
    text-align: center;
    color: white;
    background-color: #F05436;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.loan-cta-button:hover {
    background-color: #dc2626;
}

.loan-cta-button span {
    align-self: stretch;
    margin-top: auto;
    margin-bottom: auto;
}

.loan-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
}

.loan-feature-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
}

.loan-feature-instant {
    width: auto;
    min-width: 140px;
}

.loan-feature-verification {
    width: auto;
    min-width: 160px;
}

.loan-feature-loan {
    width: auto;
    min-width: 150px;
}

.loan-feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #F05436;
    border-radius: 50%;
    flex-shrink: 0;
}

.loan-feature-icon img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.loan-feature-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #27272a;
    font-weight: 400;
}

.loan-offers {
    font-size: 16px;
}

.loan-hero-image {
    object-fit: contain;
    height: 457px;
    min-width: 12rem;
    width: 418px;
    max-width: 100%;
    flex: 0 1 530px;
    /* Remove position, right, bottom, z-index */
    margin-left: 2rem;
    align-self: center;
}


.no-otp-no-kyc{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 12px;
    margin-top: 10px;
    margin-left: 45px;
}

/* Desktop image visible by default, mobile hidden */
.loan-hero-image.desktop-img { display: block; }
.loan-hero-image.mobile-img { display: none; }

@media (max-width: 1200px) {
    .loan-hero-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .loan-hero-image {
        height: 350px;
        width: 300px;
        margin-left: 1rem;
    }
}

@media (max-width: 900px) {
    .loan-hero-container {
        flex-direction: column;
        align-items: center;
        gap: 0rem;
    }
    .loan-hero-content {
        max-width: 100%;
    }
    .loan-hero-image {
        margin-left: 0;
        margin-top: 2rem;
        width: 80vw;
        height: auto;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .loan-hero-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .loan-hero-container {
        max-width: 100%;
        padding-top: 1.5rem;
        padding-bottom: 0.5rem;
    }
    .no-otp-no-kyc{
        margin-left: 0px;
    }

    .loan-hero-content {
        max-width: 100%;
        align-items: center !important;
        text-align: center !important;
    }

    .loan-content-wrapper {
        max-width: 100%;
        align-items: center !important;
        text-align: center !important;
    }

    .loan-heading-container {
        margin-left: auto;
        margin-right: auto;
        text-align: center !important;
    }

    .loan-main-heading {
        max-width: 100%;
        font-size: 2.25rem;
    }

    .loan-description {
        max-width: 100%;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .loan-cta-button {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
    }

    .loan-features-list {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .loan-feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .loan-feature-instant,
    .loan-feature-verification,
    .loan-feature-loan {
        width: auto;
        min-width: auto;
    }

    .loan-hero-image {
        max-width: 100%;
    }

    .form-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        width: 100%;
    }
    .form-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .form-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 8px 0 0;
        flex: none;
        white-space: nowrap;
    }
    .location-permission-btn {
        margin-left: auto;
        padding: 8px 16px;
        font-size: 0.95rem;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .loan-hero-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .loan-hero-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin-top: 1rem;
    }

    /* Show mobile image, hide desktop image on small screens */
    .loan-hero-image.desktop-img { display: none !important; }
    .loan-hero-image.mobile-img { display: block !important; width: 100%; max-width: 411px; margin-top: 0rem; height: auto; }
}

/* Check Your Eligibility Section */
.eligibility-check-section {
    padding: 80px 0;
}

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

.eligibility-header {
    text-align: center;
    margin-bottom: 60px;
}

.eligibility-title {
    font-size: 30px;
    font-weight: 600;
    color: #27272a;
    margin-bottom: 15px;
}

.eligibility-highlight {
    color: #ef4444;
}

.eligibility-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.eligibility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Benefits Card */
.benefits-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefits-title {
    font-size: 1.9rem;
    font-weight: 600;
    color: #27272a;
    margin-bottom: 30px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F05535;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 21px;
    color: #27272a;
    font-weight: 400;
}

/* Eligibility Form Card */
.eligibility-form-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* width: 40rem */
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures max space between title and button */
    margin-bottom: 25px;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 8px; /* Optional: horizontal padding */
    /* Remove gap here */
}

.form-title-row {
    display: flex;
    align-items: center;
    gap: 10px; /* Only between icon and text */
}

.form-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Keep text in one line */
}

.location-permission-btn {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 80px; /* Add large space between title and button */
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Keep text in one line */
}

.location-permission-mobile { display: none; }
.location-permission-desktop { display: inline; }

@media (max-width: 600px) {
  .location-permission-mobile { display: inline; }
  .location-permission-desktop { display: none; }
}

.eligibility-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    width: 50%;
    min-width: 0;
}

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

.form-half {
    flex: 1;
}

.form-label {
    font-size: 0.755rem;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 400;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    font-size: 0.755rem;
    transition: border-color 0.2s;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.eligibility-submit-btn {
    background: #F05535;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.eligibility-submit-btn:hover {
    background: #dc2626;
}

/* Terms Disclaimer */
.terms-disclaimer {
    background: #FFF7ED;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: 1px solid #FED7AA;
}

.terms-badge {
    /* background: #ffc107; */
    color: #7C2D12;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.terms-text {
    font-size: 0.875rem;
    color: #9A3412;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eligibility-check-section {
        padding: 40px 0;
    }

    .eligibility-container {
        padding: 0 15px;
    }

    .eligibility-title {
        font-size: 2rem;
    }

    .eligibility-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Reorder cards on mobile: form first, then benefits */
    .eligibility-form-card {
        order: 1;
    }

    .benefits-card {
        order: 2;
    }

    .benefits-card,
    .eligibility-form-card {
        padding: 25px;
    }

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

    .form-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    .form-icon {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }
    
    .form-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .location-permission-btn {
        margin-left: auto !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 16px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        min-width: auto !important;
    }

    .terms-disclaimer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .eligibility-title {
        font-size: 1.75rem;
    }

    .benefits-card,
    .eligibility-form-card {
        padding: 20px;
    }

    .form-header {
        gap: 6px !important;
    }
    
    .form-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .form-title {
        font-size: 0.9rem !important;
    }
    
    .location-permission-btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 14px !important;
    }

    .form-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        width: 100%;
    }
    .form-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .form-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 8px 0 0;
        flex: none;
        white-space: nowrap;
    }
    .location-permission-btn {
        margin-left: auto;
        padding: 8px 16px;
        font-size: 0.95rem;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
}
/* Add these media queries to your existing CSS file */

/* Mobile Form Responsiveness - Updated to match the image exactly */
@media (max-width: 768px) {
    .eligibility-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Form comes first on mobile */
    .eligibility-form-card {
        order: 1;
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    /* Benefits card comes second */
    .benefits-card {
        order: 2;
    }
    
    .form-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        margin-bottom: 25px !important;
    }
    
    .form-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .form-title {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        color: #1f2937;
    }
    
    .location-permission-btn {
        background: #22c55e !important;
        color: white !important;
        border: none !important;
        border-radius: 25px !important;
        padding: 8px 16px !important;
        font-size: 0.875rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: 0 !important;
        width: auto !important;
    }
    
    /* Form fields - all full width and stacked */
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 0;
    }
    
    .form-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151;
        margin-bottom: 8px;
        display: block;
    }
    
    .form-input {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 16px; /* Prevents iOS zoom */
        background: white;
        box-sizing: border-box;
    }
    
    /* Mobile number input specific styling */
    .form-group input[type="tel"] {
        padding-left: 85px !important;
    }
    
    /* Country code positioning */
    .form-group div[style*="position: absolute"] {
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .form-group div[style*="position: absolute"] span:first-child {
        font-size: 16px !important;
    }
    
    .form-group div[style*="position: absolute"] span:last-child {
        font-size: 14px !important;
        color: #666 !important;
    }
    
    /* Submit button */
    .eligibility-submit-btn {
        width: 100%;
        padding: 16px 24px;
        background: #F05535;
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 600;
        margin-top: 25px;
        cursor: pointer;
    }
    
    /* Error messages */
    .error-message {
        font-size: 13px !important;
        color: #ef4444 !important;
        margin-top: 5px !important;
        display: none;
    }
    
    /* Select dropdowns */
    select.form-input {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 40px;
    }
}

@media (max-width: 480px) {
    .eligibility-form-card {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .form-header {
        margin-bottom: 20px !important;
    }
    
    .form-title {
        font-size: 1.25rem !important;
    }
    
    .location-permission-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .form-group input[type="tel"] {
        padding-left: 80px !important;
    }
    
    .eligibility-submit-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .eligibility-container {
        padding: 0 10px;
    }
    
    .eligibility-form-card {
        padding: 15px 12px;
        margin: 0 5px;
    }
    
    .form-title {
        font-size: 1.1rem !important;
    }
    
    .location-permission-btn {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }
    
    .form-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .form-group input[type="tel"] {
        padding-left: 75px !important;
    }
    
    /* Hide desktop text, show mobile text */
    .location-detected-desktop {
        display: none !important;
    }
    
    .location-detected-mobile {
        display: inline !important;
    }
}

/* Focus states for better mobile experience */
@media (max-width: 768px) {
    .form-input:focus {
        outline: none;
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }
    
    .eligibility-submit-btn:hover,
    .eligibility-submit-btn:active {
        background: #dc2626;
    }
    
    /* Prevent iOS zoom on inputs */
    input[type="tel"],
    input[type="number"],
    input[type="text"],
    select {
        font-size: 16px !important;
    }
}

/* Benefits card mobile styling */
@media (max-width: 768px) {
    .benefits-card {
        padding: 25px 30px;
        margin-top: 20px;
    }
    
    .benefits-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .benefits-list {
        gap: 20px;
    }
    
    .benefit-item {
        gap: 12px;
    }
    
    .benefit-icon {
        width: 36px;
        height: 36px;
    }
    
    .benefit-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

