.loan-section {
    padding: 80px 40px;
    text-align: center;
}

.loan-subtitle {
    margin-top: -20px;
    font-size: 18px;
    color: #666;
}

.loan-form-card {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Loan Type Icons */
.loan-type-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
}

.loan-type-card {
    width: 150px;
    padding: 15px;
    border-radius: 14px;
    background: #fafafa;
    border: 2px solid #eee;
    transition: 0.3s;
    cursor: pointer;
}

.loan-type-card img {
    width: 55px;
    height: 55px;
    margin-bottom: 10px;
}

.loan-type-card:hover {
    transform: translateY(-5px);
    border-color: #ff416c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Form Styling */
.loan-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.input-group {
    width: 47%;
    text-align: left;
}

.input-group.full {
    width: 100%;
}

.input-group label {
    font-weight: 600;
    color: #444;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    margin-top: 8px;
}

.submit-btn {
    margin-top: 20px;
    width: 100%;
}

/* WhatsApp Floating Button */
.wa-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: pulse 1.6s infinite;
}

.wa-float img {
    width: 36px;
}

/* animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    .input-group { width: 100%; }
    .loan-type-card { width: 45%; }
}
.loan-type-card.selected {
    border-color: #ff416c;
    background: #ffe5ec;
    transform: translateY(-5px);
}
.input-error {
    border: 2px solid red !important;
}

.error-msg {
    color: red;
    font-size: 13px;
    margin-top: -5px;
    display: block;
}

/* ================================
   FIX: Loan Type Cards Mobile
================================ */
@media (max-width: 768px) {
  .loan-type-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .loan-type-card {
    width: 100%;
    min-height: 130px;
  }

  .loan-type-card img {
    max-width: 48px;
    height: auto;
  }
}

@media (max-width: 420px) {
  .loan-type-box {
    grid-template-columns: 1fr;
  }
}