/* ============================================================================
   /appointment — short hero with the Hindi voice guide, the booking form
   straight after it, a step tracker, a help strip and the floating voice
   assistant. Behaviour lives in js/gj-appt.js. Linked last in <head>, so
   equal-specificity rules here win over the page's inline <style>.
   ========================================================================== */

/* ---------- hero ------------------------------------------------------------ */
.appointment-hero.gj-ahero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 34px;
    text-align: left;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(56,189,248,.35), transparent 50%),
        radial-gradient(ellipse at 10% 100%, rgba(251,191,36,.18), transparent 45%),
        linear-gradient(135deg, #0b2f7a 0%, #1747b8 55%, #2563eb 100%);
}
/* slow light rays behind the hero */
.gj-ahero::before {
    content: '';
    position: absolute;
    right: -10%;
    top: 50%;
    width: 900px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 15%, transparent 65%);
            mask: radial-gradient(circle, #000 15%, transparent 65%);
    transform: translateY(-50%) rotate(0deg);
    animation: gjApptRays 60s linear infinite;
    pointer-events: none;
}
@keyframes gjApptRays { to { transform: translateY(-50%) rotate(360deg); } }
.gj-ahero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}
.gj-ahero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fbbf24;
    color: #3b2302;
    font-weight: 700;
    font-size: .85rem;
}
.appointment-hero.gj-ahero h1 {
    margin: 14px 0 8px;
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    color: #fff;
    line-height: 1.15;
}
.appointment-hero.gj-ahero p { margin: 0; font-size: 1.05rem; color: rgba(255,255,255,.88); }
.gj-ahero-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 18px 0 0;
    padding: 0;
}
.gj-ahero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: .88rem;
}
.gj-ahero-chips i { color: #fde68a; }
.gj-ahero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }

/* the big voice button, with sound rings */
.gj-voice-start {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #0b2f7a;
    text-align: left;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
    transition: transform .25s ease;
}
.gj-voice-start:hover { transform: translateY(-2px); }
.gj-voice-start-icon {
    position: relative;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}
.gj-voice-start-icon::before,
.gj-voice-start-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(249,115,22,.55);
    animation: gjVoiceRing 2s ease-out infinite;
}
.gj-voice-start-icon::after { animation-delay: 1s; }
@keyframes gjVoiceRing { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.gj-voice-start-text strong { display: block; font-size: 1.1rem; }
.gj-voice-start-text small { display: block; color: #64748b; font-size: .82rem; margin-top: 2px; }
.gj-voice-start.is-on .gj-voice-start-icon { background: linear-gradient(135deg, #16a34a, #4ade80); }
.gj-voice-start.is-on .gj-voice-start-icon::before,
.gj-voice-start.is-on .gj-voice-start-icon::after { border-color: rgba(34,197,94,.55); }
.gj-jump {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    opacity: .9;
}
.gj-jump i { animation: gjJump 1.6s ease-in-out infinite; }
@keyframes gjJump { 50% { transform: translateY(4px); } }

/* ---------- booking card ----------------------------------------------------- */
.appointment-section#bookingForm { padding-top: 34px; }
.appointment-form-card h2 { font-size: 1.6rem; }

/* step tracker, kept in step with the form by gj-appt.js */
.gj-tracker {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 0 22px;
    padding: 0;
    counter-reset: none;
}
.gj-tracker li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}
/* the line joining the dots */
.gj-tracker li:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 17px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}
.gj-tracker li.is-done:not(:first-child)::before,
.gj-tracker li.is-on:not(:first-child)::before { background: linear-gradient(90deg, #22c55e, #f97316); }
.gj-tracker-no {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    transition: all .35s cubic-bezier(.2,1.4,.4,1);
}
.gj-tracker li.is-on { color: #c2410c; }
.gj-tracker li.is-on .gj-tracker-no {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(249,115,22,.18);
}
.gj-tracker li.is-done { color: #15803d; }
.gj-tracker li.is-done .gj-tracker-no { border-color: #22c55e; background: #22c55e; color: transparent; }
.gj-tracker li.is-done .gj-tracker-no::after { content: '\2713'; position: absolute; color: #fff; font-size: 1rem; }

/* help strip */
.gj-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin-top: 26px;
    padding: 18px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
    border: 1px solid #bbf7d0;
}
.gj-help-text strong { display: block; color: #14532d; font-size: 1.05rem; }
.gj-help-text span { color: #475569; font-size: .92rem; }
.gj-help-actions { display: flex; gap: 10px; }
.gj-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(0,0,0,.45);
    transition: transform .2s ease;
}
.gj-help-btn:hover { transform: translateY(-2px); }
.gj-help-call { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.gj-help-wa { background: linear-gradient(135deg, #16a34a, #22c55e); }

/* what to bring */
.gj-bring {
    margin-bottom: 26px;
    padding: 20px 22px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.gj-bring h3 { margin: 0 0 10px; color: #9a3412; }
.gj-bring ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gj-bring li { display: flex; align-items: center; gap: 10px; color: #431407; }
.gj-bring i { width: 22px; text-align: center; color: #ea580c; }

/* ---------- floating voice assistant (built by gj-appt.js) ------------------- */
/* Above everything, including the booking modal, which the page lifts to a
   full-screen layer at z-index 2147483000. */
.gj-va {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147483600;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: min(420px, calc(100vw - 100px));
    font-family: 'Poppins', system-ui, sans-serif;
    pointer-events: none;
}
.gj-va > * { pointer-events: auto; }
.gj-va-face {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 12px 26px -10px rgba(194,65,12,.7);
}
.gj-va.is-muted .gj-va-face { background: linear-gradient(135deg, #64748b, #94a3b8); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
/* little equaliser bars while speaking */
.gj-va-bars { display: none; gap: 3px; align-items: center; height: 22px; }
.gj-va-bars i { display: block; width: 4px; border-radius: 2px; background: #fff; animation: gjVaBar .9s ease-in-out infinite; }
.gj-va-bars i:nth-child(2) { animation-delay: -.3s; }
.gj-va-bars i:nth-child(3) { animation-delay: -.6s; }
.gj-va-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes gjVaBar { 0%, 100% { height: 6px; } 50% { height: 22px; } }
.gj-va.is-speaking .gj-va-bars { display: flex; }
.gj-va.is-speaking .gj-va-icon { display: none; }
.gj-va.is-speaking .gj-va-face::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(249,115,22,.5);
    animation: gjVoiceRing 1.6s ease-out infinite;
}
.gj-va-bubble {
    position: relative;
    padding: 12px 14px 10px;
    border-radius: 16px 16px 16px 4px;
    background: #fff;
    color: #1e293b;
    font-size: .92rem;
    line-height: 1.55;
    box-shadow: 0 18px 40px -16px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06);
    transform-origin: 0 100%;
    animation: gjVaPop .35s cubic-bezier(.2,1.4,.4,1);
}
.gj-va-bubble[hidden] { display: none; }
@keyframes gjVaPop { from { transform: scale(.7); opacity: 0; } }
.gj-va-title { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: #ea580c; text-transform: uppercase; margin-bottom: 3px; }
.gj-va-tools { display: flex; gap: 6px; margin-top: 8px; }
.gj-va-tools button {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 4px 11px;
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}
.gj-va-tools button:hover { background: #fff7ed; border-color: #fdba74; }
.gj-va-close {
    position: absolute;
    top: 4px;
    right: 6px;
    border: 0;
    background: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
}

/* ---------- scroll reveals ---------------------------------------------------- */
.gj-appt-motion .gj-arv { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.gj-appt-motion .gj-arv.gj-in { opacity: 1; transform: none; }

/* ---------- phones ------------------------------------------------------------ */
@media (max-width: 900px) {
    .appointment-hero.gj-ahero { padding: 92px 0 22px; }
    .gj-ahero-inner { grid-template-columns: 1fr; gap: 18px; }
    .gj-ahero::before { width: 600px; right: -40%; }
    .gj-ahero-chips li { font-size: .8rem; padding: 6px 11px; }
    .appointment-section#bookingForm { padding-top: 18px; }
    .gj-tracker li { font-size: .72rem; }
    .gj-tracker-no { width: 30px; height: 30px; }
    .gj-tracker li:not(:first-child)::before { top: 14px; }
    .gj-help { padding: 16px; }
    .gj-help-actions { width: 100%; }
    .gj-help-btn { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
    .appointment-hero.gj-ahero p { font-size: .95rem; }
    .gj-va { left: 10px; bottom: 10px; }
    .gj-va-face { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .gj-ahero::before, .gj-voice-start-icon::before, .gj-voice-start-icon::after,
    .gj-jump i, .gj-va-bars i, .gj-va.is-speaking .gj-va-face::after { animation: none; }
    .gj-appt-motion .gj-arv { opacity: 1; transform: none; transition: none; }
}

/* while the booking pop-up is open: top-left, smaller */
.gj-va.is-top { top: 10px; bottom: auto; align-items: flex-start; }
.gj-va.is-top .gj-va-face { width: 44px; height: 44px; font-size: 1rem; }
.gj-va.is-top .gj-va-bubble { border-radius: 4px 16px 16px 16px; transform-origin: 0 0; }

/* the hero already says this; the card's own title and fee line only push
   the calendar down */
#bookingForm .appointment-form-card > h2,
#bookingForm .appointment-form-card > .subtitle { display: none; }
@media (max-width: 900px) {
    .appointment-form-card { padding: 22px 16px !important; }
    .gj-voice-start { padding: 10px 14px 10px 10px; }
    .gj-voice-start-icon { width: 46px; height: 46px; font-size: 1.15rem; }
    .gj-jump { display: none; }
}
@media (max-width: 600px) {
    .gj-va-bubble { font-size: .84rem; line-height: 1.5; padding: 10px 12px 8px; }
    .gj-va-tools button { font-size: .72rem; padding: 3px 9px; }
}
