/* ==========================================================================
   Apply for a Loan — styles for the yellow home-page button, the first-visit
   popup (both on index.html), and the standalone form page (apply-loan.html).
   Self-contained; safe to load alongside the marketing CSS.
   ========================================================================== */

/* --------------------------------------------- yellow header "Apply" button */
.apply-loan-btn {
    display: inline-block;
    background: #ffd21f;
    color: #3a2a00 !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 8px 16px;
    margin-right: 10px;
    border: 1px solid #e0b400;
    border-radius: 4px;
    line-height: 1.2;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    animation: alPulse 2.2s ease-in-out infinite;
}
.apply-loan-btn:hover,
.apply-loan-btn:focus { background: #ffc400; color: #3a2a00 !important; }
.apply-loan-btn i { margin-right: 6px; }

@keyframes alPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, .55); }
    50%      { box-shadow: 0 0 0 7px rgba(255, 196, 0, 0); }
}

/* --------------------------------------------------- first-visit popup */
.al-popup {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex; align-items: center; justify-content: center;
    z-index: 100000; padding: 16px;
    animation: alFade .2s ease;
}
@keyframes alFade { from { opacity: 0; } to { opacity: 1; } }

.al-popup-box {
    position: relative;
    background: #fff; color: #333;
    max-width: 420px; width: 100%;
    border-radius: 10px; padding: 28px 26px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    border-top: 6px solid #ffd21f;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}
.al-popup-box h2 { margin: 4px 0 10px; font-size: 22px; color: #8a2b26; }
.al-popup-box p  { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: #555; }

.al-popup-x {
    position: absolute; top: 8px; right: 10px;
    background: none; border: 0; font-size: 26px; line-height: 1;
    color: #999; cursor: pointer;
}
.al-popup-x:hover { color: #333; }

.al-popup-cta {
    display: inline-block; width: 100%; box-sizing: border-box;
    background: #ffd21f; color: #3a2a00 !important;
    font-weight: 700; text-decoration: none !important;
    padding: 12px 18px; border-radius: 6px; font-size: 15px;
    border: 1px solid #e0b400;
}
.al-popup-cta:hover { background: #ffc400; }

.al-popup-later {
    display: block; margin: 12px auto 0;
    background: none; border: 0; color: #888;
    font-size: 13px; cursor: pointer; text-decoration: underline;
}
.al-popup-later:hover { color: #555; }

/* ============================================================ form page */
.al-body {
    margin: 0;
    background: #f4f1ea;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    min-height: 100vh;
}
.al-wrap { max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; }

.al-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
    padding: 26px 30px 32px;
    position: relative;
}
.al-back {
    display: inline-block; margin-bottom: 8px;
    color: #8a2b26; text-decoration: none; font-size: 13.5px;
}
.al-back:hover { text-decoration: underline; }

.al-head { text-align: center; margin-bottom: 20px; }
.al-logo { max-height: 54px; width: auto; margin-bottom: 10px; }
.al-head h1 { margin: 0 0 6px; font-size: 24px; color: #8a2b26; }
.al-head p  { margin: 0; color: #777; font-size: 14px; }

.al-field { margin-bottom: 16px; }
.al-field label {
    display: block; font-size: 13px; font-weight: 700;
    margin-bottom: 5px; color: #55504a;
}
.al-field input {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px; font-size: 15px; font-family: inherit;
    border: 1px solid #d6cfc2; border-radius: 5px;
    background: #fff; color: #333;
}
.al-field input:focus { outline: none; border-color: #8a2b26; box-shadow: 0 0 0 3px rgba(138, 43, 38, .12); }
.al-field input.is-bad { border-color: #c0392b; background: #fdf3f2; }

/* phone with a fixed +91 prefix */
.al-phone { display: flex; align-items: stretch; }
.al-prefix {
    display: flex; align-items: center;
    padding: 0 12px; font-size: 15px; font-weight: 700; color: #55504a;
    background: #f2efe8; border: 1px solid #d6cfc2; border-right: 0;
    border-radius: 5px 0 0 5px;
}
.al-phone input { border-radius: 0 5px 5px 0; }

.al-err { display: block; margin-top: 5px; font-size: 12.5px; color: #c0392b; }

.al-submit {
    display: inline-block; width: 100%; box-sizing: border-box;
    margin-top: 6px; text-align: center; text-decoration: none;
    background: #ffd21f; color: #3a2a00; font-weight: 700; font-size: 16px;
    padding: 13px 18px; border: 1px solid #e0b400; border-radius: 6px;
    cursor: pointer;
}
.al-submit:hover { background: #ffc400; }
.al-submit:disabled { opacity: .6; cursor: default; }

.al-msg {
    padding: 11px 14px; border-radius: 5px; margin-bottom: 16px; font-size: 14px;
}
.al-msg.is-error { background: #fdecea; border-left: 4px solid #c0392b; color: #922; }

/* honeypot: pushed off-screen, never seen by a person */
.al-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* success state */
.al-done { text-align: center; padding: 10px 0 4px; }
.al-check {
    width: 64px; height: 64px; line-height: 64px; margin: 0 auto 12px;
    border-radius: 50%; background: #eaf6ec; color: #2e7d32;
    font-size: 34px; font-weight: 700;
}
.al-done h2 { margin: 0 0 8px; color: #2e7d32; font-size: 22px; }
.al-done p  { margin: 0 0 20px; color: #555; font-size: 14.5px; line-height: 1.55; }

@media (max-width: 480px) {
    .al-card { padding: 20px 18px 26px; }
    .apply-loan-btn { font-size: 12.5px; padding: 6px 10px; }
}
