.amount-display {   
    border: none;
    max-width:300px;
}
.amount-currency {
    margin-top: 12px;
    font-size: 2rem;
}
#amountInput {
    background: none;
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: none;
    color: #0e3645 !important;
    font-family: Nunito, sans-serif;
    font-size: 28px;
    margin: 0;
    min-height: 2.5em !important;
    text-align: center !important;
}
#startBtn { 
    background-color: #009C3E !important;
}
p.error {
    color: red !important;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.form-control:-ms-input-placeholder {
    color: #999
}
.form-control::-webkit-input-placeholder {
    color: #999
}
.form-control::-moz-placeholder {
    color: #999;
    opacity: 1
}
@media (max-width: 576px) {
	.inline_item-li {
		margin: 0px 6px 0px 6px;
	}
    .index_footer-inline .inline_item-li a {
		font-size: 15px;
        padding: 10px;
    }
}

/* Mobile Fixes for Variant 31 */

/* Fix hero section on mobile */
@media (max-width: 768px) {
    .hero {
        padding: 15px 15px 25px;
        min-height: auto;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .form-container {
        padding: 20px 15px;
        margin-top: 15px !important;
    }
    .form-container h2 {
        font-size: 1.25rem;
        margin-bottom: 15px !important;
    }
    .amount-display {
        max-width: 100%;
    }
    #amountInput {
        font-size: 22px;
        min-height: 2.2em !important;
    }
    .btn-custom {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .slider-container span {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero {
        margin-top: 55px;
        padding: 10px 10px 20px;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .top-nav-right p {
        font-size: 13px;
        line-height: 1.2;
        margin-right: 5px;
    }
    header .logo {
        max-width: 120px;
    }
    .form-container {
        padding: 15px 12px;
        border-radius: 15px;
    }
    .form-container h2 {
        font-size: 1.15rem;
    }
    #amountInput {
        font-size: 20px;
    }
    .btn-custom {
        font-size: 0.95rem;
        padding: 12px 10px;
        border-radius: 30px;
    }
    .text-muted.small {
        font-size: 0.7rem;
    }

    /* Fix card sections */
    .why-choose-us .card,
    .loan-options .card {
        padding: 15px;
        border-radius: 30px 0;
        margin-bottom: 15px;
    }
    .why-choose-us .card h3,
    .loan-options .card h3 {
        font-size: 1.1rem;
    }
    .why-choose-us .card p,
    .loan-options .card p {
        font-size: 0.9rem;
    }

    /* Fix CTA section */
    .cta {
        padding: 15px 10px;
    }
    .cta-content {
        padding: 15px 10px 25px;
        border-radius: 25px;
    }
    .cta h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    .cta p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .cta p span {
        font-size: 1.5em;
    }
    .loan-form {
        padding: 20px 15px 10px;
        border-radius: 20px;
    }
    .cta .loan-form h2 {
        font-size: 1.2rem;
    }

    /* Fix accordion/FAQ */
    .accordion-button {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .accordion-body {
        font-size: 0.9rem;
        padding: 10px 15px 15px;
    }
    .questions h2,
    .faq-title {
        font-size: 1.4rem !important;
    }

    /* Fix understand section */
    .understand .inner-content {
        padding: 20px 15px;
        border-radius: 20px;
    }
    .understand h2 {
        font-size: 1.4rem;
    }
    .understand p {
        font-size: 0.9rem;
    }

    /* Fix how-to-find section */
    .how-to-find h2 {
        font-size: 1.4rem;
    }
    .how-to-find p {
        font-size: 1rem;
    }
    .how-to-find ul li {
        font-size: 0.9rem;
    }
    .how-to-find ul li span {
        font-size: 12px;
        width: 24px;
        max-width: 24px;
        height: 24px;
        line-height: 24px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.85rem;
    }
    .top-nav-right p {
        font-size: 11px;
    }
    header .logo {
        max-width: 100px;
    }
    .form-container h2 {
        font-size: 1.05rem;
    }
    #amountInput {
        font-size: 18px;
    }
    .btn-custom {
        font-size: 0.9rem;
        padding: 10px 8px;
    }
    .cta h2 {
        font-size: 1.3rem;
    }
    .cta .loan-form h2 {
        font-size: 1.1rem;
    }
    .accordion-button {
        font-size: 0.95rem;
    }

    /* Fix hamburger menu positioning */
    .hamburger {
        margin-left: 5px;
    }
    .hamburger div {
        width: 28px;
        height: 2px;
        margin: 3px 0;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.35rem;
    }
    .top-nav-right p {
        font-size: 10px;
        display: none;
    }
    header .logo {
        max-width: 90px;
    }
    .form-container {
        padding: 12px 10px;
    }
    .form-container h2 {
        font-size: 1rem;
    }
    #amountInput {
        font-size: 16px;
    }
}

.zipline {
    font-size: 16px;
    font-weight: 700;
    color: #444;
    margin-top: 10px;
    text-align: center;
    margin-bottom: 0;
}

/* Mobile Safari Tap Fixes */
.custom-btn,
.btn-custom,
.form-btn,
.btn-next,
.select-btn,
.btn-back,
#startBtn {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Ensure buttons are above other elements */
.form-steps button {
    position: relative;
    z-index: 10;
}

/* iOS Safari Input Fixes */
#ssn-number,
#phone,
#dateOfBirth,
#zipcode,
.form-steps input[type="tel"],
.form-steps input[type="text"],
.form-steps input[type="email"] {
    font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    touch-action: manipulation;
}

/* Fix iOS Safari input focus issues */
.form-steps input:focus {
    outline: none;
    border-color: #2f9ee9;
}

/* Prevent iOS Safari double-tap zoom */
.form-steps {
    touch-action: manipulation;
}

/* Fix for input container to ensure tap works */
.input-container {
    touch-action: manipulation;
    position: relative;
}

.input-container input {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Default label state - visible as placeholder */
.input-container label {
    z-index: 0;
    pointer-events: none;
    color: #666;
}

/* Fix floating label on focus - move label up when input is focused */
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: -10px;
    left: 5px;
    font-size: 13px;
    color: #212529;
    background: #fff;
    opacity: 1;
    padding: 0 5px;
    z-index: 10;
}

/* Keep income and phone labels hidden (they use placeholders) */
.input-container.income-field label,
.input-container.phone-field label {
    opacity: 0 !important;
    pointer-events: none;
}