/* ===== Hero — Anil Ambulance ===== */
.ah-hero {
    --ah-navy: #0b2545;
    --ah-red: #e0182d;
    --ah-red-dark: #b80f21;
    position: relative;
    overflow: hidden;
    background: var(--ah-navy);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    padding: 40px 0 48px;
}
/* soft depth behind the copy */
.ah-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 420px at 12% 30%, rgba(255, 255, 255, .06), transparent 70%),
        radial-gradient(520px 360px at 8% 100%, rgba(224, 24, 45, .14), transparent 70%);
}

/* Photo on the right, fading into navy on its left edge */
.ah-hero-media {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 60%; overflow: hidden;
}
.ah-hero-media img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: 42% 62%;
}
.ah-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--ah-navy) 0%, rgba(11, 37, 69, .75) 18%, rgba(11, 37, 69, 0) 48%),
        linear-gradient(0deg, rgba(11, 37, 69, .35) 0%, rgba(11, 37, 69, 0) 30%);
}

.ah-hero .container { position: relative; z-index: 1; }
.ah-hero-copy { max-width: 600px; }

.ah-hero-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 30px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.ah-hero h1 {
    margin: 14px 0 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(30px, 3.1vw, 44px); line-height: 1.12; font-weight: 800;
    letter-spacing: -.015em; color: #fff;
}
/* exactly two lines: each half stays on its own line */
.ah-hero h1 .ah-l1, .ah-hero h1 .ah-l2 { display: block; white-space: nowrap; }
.ah-hero h1 .ah-l2 { color: #ff5a6b; }

/* Quick call-back card */
.ah-hero-form {
    background: #fff; color: var(--ah-navy);
    border-radius: 14px; padding: 16px 20px 0;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
    border-top: 4px solid var(--ah-red);
}
.ah-form-head { margin-bottom: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ah-online {
    flex: none; display: inline-flex; align-items: center; gap: 2px;
    padding: 5px 11px; border-radius: 30px;
    background: #e9f8f0; color: #17804a; font-size: 12px; font-weight: 700;
}
.ah-online .ah-dot { width: 7px; height: 7px; margin-right: 5px; }
.ah-hero-form-title { font-size: 17px; font-weight: 700; margin: 0; }
.ah-hero-form-sub { font-size: 13px; color: #6b7686; margin: 3px 0 0; }

.ah-hero-fields { display: grid; grid-template-columns: 1fr 1.15fr auto; gap: 10px; align-items: start; }

/* inputs with a leading icon / +91 prefix */
.ah-input { position: relative; }
.ah-input > i, .ah-prefix {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #8a93a2; pointer-events: none;
}
.ah-input > i { font-size: 17px; }
.ah-prefix {
    font-size: 15px; font-weight: 600; color: var(--ah-navy);
    padding-right: 10px; border-right: 1px solid #dde2ea; line-height: 1.2;
}
.ah-hero-form .form-control {
    height: 48px; border: 1.5px solid #dde2ea; border-radius: 9px;
    background: #f8fafc;
    font-size: 15px; color: var(--ah-navy); padding: 0 14px 0 42px; box-shadow: none;
    margin: 0; width: 100%;   /* override site-wide input margins */
    transition: border-color .2s, background .2s, box-shadow .2s;
}
/* style.css sets .form-control padding/border with !important — override only inside this card */
.ah-hero-form .form-control { padding: 0 14px 0 42px !important; border: 1.5px solid #dde2ea !important; }
.ah-hero-form .ah-input-phone .form-control { padding-left: 64px !important; letter-spacing: .03em; }
.ah-hero-form .form-control:hover { border-color: #c9d1dc !important; }
.ah-hero-form .form-control:focus { border-color: var(--ah-navy) !important; }
/* error state: red border when the field's message is showing */
.ah-field:has(small:not(:empty)) .form-control { border-color: var(--ah-red) !important; background: #fff7f8; }
.ah-hero-form .form-control::placeholder { color: #8a93a2; letter-spacing: 0; }
.ah-hero-form .form-control:hover { border-color: #c9d1dc; }
.ah-hero-form .form-control:focus { border-color: var(--ah-navy); background: #fff; box-shadow: 0 0 0 4px rgba(11, 37, 69, .08); }
.ah-input:focus-within > i { color: var(--ah-red); }
.ah-field small { display: block; font-size: 12px; margin-top: 5px; }
.ah-field small:empty { display: none; }

.ah-hero-btn {
    height: 48px; padding: 0 24px; border: 0; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--ah-red); color: #fff;
    font-size: 15px; font-weight: 700; white-space: nowrap;
    box-shadow: 0 10px 20px -10px rgba(224, 24, 45, .8);
    transition: background .2s, transform .15s;
}
.ah-hero-btn:hover { background: var(--ah-red-dark); }
.ah-hero-btn:active { transform: scale(.98); }
.ah-hero-btn:focus-visible { outline: 2px solid var(--ah-red); outline-offset: 3px; }

/* footer strip of the card */
.ah-form-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
    margin: 12px -20px 0; padding: 9px 20px;
    background: #f6f8fb; border-top: 1px solid #edf0f4; border-radius: 0 0 14px 14px;
    font-size: 13px; color: #6b7686;
}
.ah-form-foot a { color: var(--ah-red); font-weight: 700; text-decoration: none; margin-left: 4px; }
.ah-form-foot a:hover { text-decoration: underline; }
.ah-safe i { color: #2fb36d; margin-right: 4px; }

.ah-hero-points {
    display: flex; flex-wrap: wrap; gap: 12px 28px;
    list-style: none; padding: 0; margin: 16px 0 0;
    font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .88);
}
.ah-hero-points li { display: flex; align-items: center; gap: 10px; }
.ah-pt-ic {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: rgba(224, 24, 45, .16); border: 1px solid rgba(255, 90, 107, .35);
    color: #ff8593; font-size: 15px;
}

/* Google rating card floating on the photo */
.ah-hero-badge {
    position: absolute; z-index: 2; top: 32px; right: 40px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .94); color: var(--ah-navy);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ah-badge-g {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: #f1f4f8; color: #4285f4; font-size: 19px;
}
.ah-badge-txt { display: flex; flex-direction: column; line-height: 1.25; }
.ah-badge-txt strong { font-size: 17px; font-weight: 800; }
.ah-badge-txt .ah-stars { color: #f5b301; font-size: 14px; letter-spacing: 1px; margin-left: 4px; }
.ah-badge-txt small { font-size: 12px; color: #6b7686; font-weight: 500; }

/* Tablet */
@media (max-width: 1199.98px) {
    .ah-hero-copy { max-width: 620px; }
    .ah-hero-points { gap: 12px 20px; }
    .ah-hero-fields { grid-template-columns: 1fr 1fr auto; }
    .ah-hero-btn { padding: 0 18px; }
    .ah-hero-media { width: 62%; }
}
/* Mobile & small tablet: photo on top, content below */
@media (max-width: 991.98px) {
    .ah-hero { padding: 0 0 26px; }
    .ah-hero-media { position: relative; width: 100%; height: 260px; }
    .ah-hero-media img { object-position: 40% 70%; }
    .ah-hero-media::after { background: linear-gradient(0deg, var(--ah-navy) 0%, rgba(11, 37, 69, 0) 55%); }
    .ah-hero .container { margin-top: -40px; }
    .ah-hero-copy { max-width: none; }
    .ah-hero::before { display: none; }
    .ah-hero-badge { top: 16px; right: 16px; padding: 8px 12px 8px 8px; gap: 9px; border-radius: 11px; }
    .ah-badge-g { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
    .ah-badge-txt strong { font-size: 14px; }
    .ah-badge-txt .ah-stars { font-size: 11px; }
    .ah-badge-txt small { font-size: 11px; }
}
@media (max-width: 575.98px) {
    .ah-hero { padding-bottom: 28px; }
    .ah-hero-media { height: 220px; }
    .ah-hero-media img { object-position: 30% 62%; }
    .ah-hero-media::after { background: linear-gradient(0deg, var(--ah-navy) 2%, rgba(11, 37, 69, .55) 30%, rgba(11, 37, 69, 0) 60%); }
    .ah-hero .container { margin-top: -54px; }
    .ah-hero-tag { font-size: 12px; padding: 6px 12px; background: rgba(11, 37, 69, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .ah-hero-badge { top: 12px; right: 12px; padding: 7px 10px 7px 7px; }
    .ah-badge-g { width: 28px; height: 28px; font-size: 13px; }
    .ah-badge-txt strong { font-size: 13px; }
    .ah-badge-txt small { font-size: 10.5px; }

    /* call-back card */
    .ah-hero-form { padding: 16px 16px 0; border-radius: 16px; }
    .ah-form-head { margin-bottom: 12px; }
    .ah-online { display: none; }
    .ah-hero-form-title { display: flex; align-items: center; gap: 8px; font-size: 17px; }
    .ah-hero-form-title::before {
        content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2fb36d;
        box-shadow: 0 0 0 4px rgba(47, 179, 109, .18);
    }
    .ah-hero-form-sub { font-size: 13px; }
    .ah-hero-fields { gap: 10px; }
    .ah-hero-form .form-control, .ah-hero-btn { height: 50px; }
    .ah-hero-btn { font-size: 15.5px; border-radius: 10px; }
    .ah-form-foot {
        margin: 14px -16px 0; padding: 10px 16px; border-radius: 0 0 16px 16px;
        flex-direction: column; gap: 4px; text-align: center; font-size: 12.5px;
    }
    .ah-form-foot { gap: 6px; padding: 12px 16px; }
    .ah-form-foot a {
        display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 5px 12px; border-radius: 30px;
        background: #fdecee; font-size: 14px;
    }
    .ah-form-foot a:hover { text-decoration: none; background: #fbd9dd; }
    .ah-safe { font-size: 12px; }

    /* trust points: three compact tiles in one row */
    .ah-hero-points { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; font-size: 12px; }
    .ah-hero-points li { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 10px 4px;
        border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
        border: 1px solid rgba(255, 255, 255, .1); line-height: 1.3; font-weight: 600; color: #fff; }
    .ah-hero-points .ah-pt-ic { width: 34px; height: 34px; font-size: 15px; border: 0; color: #fff;
        background: linear-gradient(135deg, var(--ah-red), var(--ah-red-dark)); box-shadow: 0 8px 16px -8px rgba(224, 24, 45, .9); }
    .ah-hero-form { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75); }
    .ah-hero h1 { font-size: min(30px, 7.1vw); line-height: 1.15; margin: 12px 0 18px; }
    .ah-hero-fields { grid-template-columns: 1fr; }
    .ah-hero-btn { width: 100%; }
}
/* ===== Hero motion: one calm entrance, then quiet ===== */
@keyframes ah-up    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ah-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes ah-zoom  { from { transform: scale(1.14); } to { transform: scale(1.05); } }
@keyframes ah-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ah-draw  { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* photo settles in with a slow zoom */
.ah-hero-media img { animation: ah-zoom 1.8s cubic-bezier(.2, .7, .2, 1) backwards; }

/* copy rises in, one after another */
.ah-hero-tag, .ah-hero h1, .ah-hero-sub, .ah-hero-form, .ah-hero-points {
    animation: ah-up .7s cubic-bezier(.2, .7, .2, 1) backwards;
}
.ah-hero h1         { animation-delay: .08s; }
.ah-hero-form       { animation-delay: .26s; }
.ah-hero-points     { animation-delay: .38s; }

/* red underline draws under "one call away." */
.ah-hero h1 .ah-l2 { position: relative; width: fit-content; isolation: isolate; }
.ah-hero h1 .ah-l2::after {
    content: ""; position: absolute; left: 0; right: 2px; bottom: -.2em; height: .26em; z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 70 3, 170 1, 297 6' fill='none' stroke='%23ff5a6b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    animation: ah-reveal .9s .7s cubic-bezier(.6, 0, .2, 1) backwards;
}
@keyframes ah-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* rating card fades in, then floats gently */
.ah-hero-badge { animation: ah-in .6s .6s backwards, ah-float 5s 1.2s ease-in-out infinite; }

/* form card: lifts slightly while the user is filling it */
.ah-hero-form { transition: box-shadow .3s ease, transform .3s ease; }
.ah-hero-form:focus-within { transform: translateY(-2px); box-shadow: 0 36px 70px -24px rgba(0, 0, 0, .7); }

/* button: lift on hover, icon nudges */
.ah-hero-btn { transition: background .2s, transform .2s, box-shadow .2s; }
.ah-hero-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -10px rgba(224, 24, 45, .9); }
.ah-hero-btn i { transition: transform .25s ease; }
.ah-hero-btn:hover i { transform: rotate(-12deg) scale(1.1); }

/* trust points: icon fills red on hover */
.ah-pt-ic { transition: background .25s, color .25s, border-color .25s; }
.ah-hero-points li:hover .ah-pt-ic { background: var(--ah-red); border-color: var(--ah-red); color: #fff; }

/* photo parallax (driven by --mx / --my from JS) */
.ah-hero-media img {
    transform: scale(1.05) translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px));
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

/* heartbeat line running along the bottom of the hero */
.ah-ecg {
    position: absolute; left: 0; bottom: 6px; width: 100%; height: 50px;
    z-index: 0; pointer-events: none; overflow: visible;
}
.ah-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ah-ecg-base  { stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; }
.ah-ecg-pulse {
    stroke: #ff5a6b; stroke-width: 2.5;
    stroke-dasharray: 120 880; stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 4px rgba(255, 90, 107, .9));
    animation: ah-ecg 4.5s linear infinite;
    opacity: .75;
}
@keyframes ah-ecg { to { stroke-dashoffset: 0; } }

/* CTA: soft light sweep every few seconds to draw the eye */
.ah-hero-btn { position: relative; overflow: hidden; isolation: isolate; }
.ah-hero-btn::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    animation: ah-sweep 5s 2s ease-in-out infinite;
}
@keyframes ah-sweep { 0% { left: -60%; } 22%, 100% { left: 130%; } }

@media (max-width: 575.98px) { .ah-ecg { display: none; } }

/* ===== Layout grid: everything lines up with the header container ===== */
@media (min-width: 992px) {
    /* rating card sits on the container's right edge, level with the tag */
    .ah-hero-badge { top: 40px; right: calc((100% - 960px) / 2 + 12px); }
    /* points span the same width as the form, edges aligned */
    .ah-hero-points { justify-content: space-between; max-width: 600px; }
    .ah-hero-copy { display: flex; flex-direction: column; }
    .ah-hero-tag { align-self: flex-start; }
}
@media (min-width: 1200px) { .ah-hero-badge { right: calc((100% - 1140px) / 2 + 12px); } }
@media (min-width: 1400px) { .ah-hero-badge { right: calc((100% - 1380px) / 2 + 12px); } }

@media (prefers-reduced-motion: reduce) {
    .ah-hero *, .ah-hero *::before, .ah-hero *::after { animation: none !important; transition: none !important; }
}