/* ===== Booking popup (#popup) — Anil Ambulance ===== */
#popup {
    --ah-navy: #0b2545;
    --ah-red: #e0182d;
    --ah-red-dark: #b80f21;
    --ah-green: #1fa855;
    --ah-line: #e3e9f1;
    --ah-muted: #6b7686;
    padding: 16px;
    background: rgba(11, 37, 69, .55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
#popup .ah-bookbox {
    width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 0; border-radius: 20px; text-align: left;
    display: grid; grid-template-columns: 1fr;
    font-family: 'Montserrat', sans-serif; background: #fff;
    box-shadow: 0 30px 60px -20px rgba(11, 37, 69, .5);
    animation: ah-book-in .3s cubic-bezier(.2, .7, .2, 1);
}
@keyframes ah-book-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

#popup .close-btn-2 {
    top: 16px; right: 16px; width: 34px; height: 34px; padding: 0;
    display: grid; place-items: center; border-radius: 50%;
    background: #f1f4f8; color: var(--ah-navy);
    transition: background .2s ease, color .2s ease;
}
#popup .close-btn-2 i { font-size: 14px; }
#popup .close-btn-2:hover { background: #fff1f2; color: var(--ah-red); }
#popup .close-btn-2:focus-visible { outline: 2px solid var(--ah-red); outline-offset: 2px; }
@keyframes ah-book-ping { to { transform: scale(2.6); opacity: 0; } }

#popup .ah-bookbox h2 { margin: 0 0 2px; padding-right: 36px; color: var(--ah-navy); font-size: 21px; font-weight: 800; line-height: 1.25; }
#popup .ah-book-sub { margin: 0; padding-bottom: 12px; color: var(--ah-muted); font-size: 13px; line-height: 1.5; }

/* Fields */
#popup .ah-book-form label { margin: 0 0 4px; color: var(--ah-navy); font-size: 12.5px; font-weight: 700; }
#popup .ah-book-field {
    position: relative; display: flex; align-items: center;
    height: 44px; margin-bottom: 10px; padding: 0 13px; gap: 10px;
    border: 1.5px solid var(--ah-line); border-radius: 12px; background: #f8fafd;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
#popup .ah-book-field:focus-within { border-color: var(--ah-red); background: #fff; box-shadow: 0 0 0 4px rgba(224, 24, 45, .1); }
#popup .ah-book-field > i { color: var(--ah-muted); font-size: 16px; }
#popup .ah-book-field:focus-within > i { color: var(--ah-red); }
#popup .ah-book-cc { padding-right: 10px; border-right: 1px solid var(--ah-line); color: var(--ah-navy); font-size: 14px; font-weight: 700; }
#popup .ah-book-field input {
    flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
    color: var(--ah-navy); font-size: 15px; font-weight: 600; font-family: inherit;
}
#popup .ah-book-field input::placeholder { color: #9aa4b2; font-weight: 500; }
#popup .ah-book-form .error { margin: -6px 0 10px; font-size: 12px; font-weight: 600; text-align: left; }

#popup .ah-book-submit {
    width: 100%; height: 48px; margin-top: 2px; border: 0; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(180deg, #ef3447, var(--ah-red) 70%); color: #fff;
    font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 22px -12px rgba(224, 24, 45, .85);
    transition: transform .2s ease, background .2s ease;
}
#popup .ah-book-submit:hover { background: linear-gradient(180deg, var(--ah-red), var(--ah-red-dark)); transform: translateY(-1px); }
#popup .ah-book-submit:active { transform: scale(.98); }
#popup .ah-book-submit:focus-visible { outline: 2px solid var(--ah-navy); outline-offset: 2px; }

/* Or call now */
#popup .ah-book-quick { display: grid; grid-template-columns: 1fr 48px; gap: 8px; }
#popup .ah-book-call, #popup .ah-book-wa {
    height: 48px; border-radius: 12px; display: flex; align-items: center; text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
#popup .ah-book-call { gap: 12px; padding: 0 14px 0 8px; border: 1.5px solid #f3c6cb; background: #fff7f8; color: var(--ah-navy); }
#popup .ah-book-call i {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: var(--ah-red); color: #fff; font-size: 15px;
    animation: ah-book-ring 3s ease-in-out infinite;
}
#popup .ah-book-call span { display: flex; flex-direction: column; line-height: 1.15; color: var(--ah-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#popup .ah-book-call small { margin-top: 2px; color: var(--ah-navy); font-size: 17px; font-weight: 800; letter-spacing: .01em; text-transform: none; }
#popup .ah-book-call:hover { border-color: var(--ah-red); background: #fff1f2; transform: translateY(-1px); }
#popup .ah-book-wa { justify-content: center; background: linear-gradient(180deg, #2bd06a, var(--ah-green) 70%); color: #fff; font-size: 24px; }
#popup .ah-book-wa:hover { transform: translateY(-1px); color: #fff; }
#popup .ah-book-call:focus-visible, #popup .ah-book-wa:focus-visible { outline: 2px solid var(--ah-navy); outline-offset: 2px; }
@keyframes ah-book-ring {
    0%, 80%, 100% { transform: rotate(0); }
    84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); }
}

#popup .ah-bk-main { padding: 22px 20px 18px; border-top: 4px solid var(--ah-red); }
#popup .ah-bookbox { max-width: 380px; }
#popup .ah-book-quick { margin-top: 10px; }
/* Mobile: centred card, roomier and easier to tap */
@media (max-width: 575.98px) {
    #popup { padding: 18px; z-index: 100000; }
    #popup .ah-bookbox {
        max-width: 400px; max-height: calc(100vh - 36px); border-radius: 22px;
        box-shadow: 0 30px 70px -20px rgba(11, 37, 69, .6);
    }
    #popup .ah-bk-main { padding: 24px 18px 18px; }
    #popup .close-btn-2 { top: 18px; right: 16px; }
    #popup .ah-bookbox h2 { font-size: 21px; }
    #popup .ah-book-sub { padding-bottom: 16px; font-size: 13.5px; }
    #popup .ah-book-field { height: 50px; margin-bottom: 12px; }
    #popup .ah-book-field input { font-size: 16px; }
    #popup .ah-book-submit { height: 52px; }

    #popup .ah-book-quick { grid-template-columns: 1fr 52px; gap: 10px; margin-top: 12px; }
    #popup .ah-book-call, #popup .ah-book-wa { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    #popup *, #popup *::after { animation: none !important; transition: none !important; }
}
