/* ════════════════════════════════════════════════════════════
   AstroBooking v2.4.1 — Matches astrowizard.co.in exactly
   Palette from screenshots + uploaded CSS variables merged
   Font: inherit from theme (Space Mono for headings, sans for body)
════════════════════════════════════════════════════════════ */

/* ── Variables (merged from uploaded style + screenshots) ── */
.astro-booking-wrap {
    /* Gold palette */
    --ab-gold:        #c8980e;
    --ab-gold-d:      #a87c0a;
    --ab-gold-grad:   linear-gradient(135deg, #e5ba54 0%, #d5a431 100%);
    --ab-gold-tint:   rgba(200,152,14,.10);
    --ab-gold-tint2:  #fdf9ee;
    --ab-gold-ring:   rgba(200,152,14,.22);
    --ab-gold-shadow: 0 8px 24px rgba(156,110,18,.18);
    /* Borders */
    --ab-border:      #e8dcc0;
    --ab-border-f:    #c8980e;
    /* Surfaces */
    --ab-card:        #ffffff;
    --ab-bg:          #fffaf0;
    /* Text */
    --ab-text:        #2e230f;
    --ab-sub:         #78674a;
    --ab-muted:       #a89c84;
    /* States */
    --ab-success:     #2e7d32;
    --ab-error:       #c62828;
    /* Shape */
    --ab-radius:      14px;
    --ab-radius-sm:   10px;
    --ab-shadow:      0 6px 18px rgba(0,0,0,.07);
    --ab-shadow-h:    0 8px 28px rgba(0,0,0,.12);
}

/* ── Outer wrapper ──────────────────────────────────────── */
.astro-booking-wrap {
    max-width: 980px;
    margin: 0 auto;
    font-family: inherit;   /* picks up theme font (Space Mono etc) */
    color: var(--ab-text);
    background: transparent;
    box-sizing: border-box;
}
.astro-booking-wrap *,
.astro-booking-wrap *::before,
.astro-booking-wrap *::after { box-sizing: border-box; }

/* ── White card container ───────────────────────────────── */
.astro-form-card {
    background: var(--ab-card);
    border-radius: 20px;
    box-shadow: var(--ab-shadow);
    padding: 44px 52px;
}

/* ── Form header ────────────────────────────────────────── */
.astro-form-header { text-align: center; margin-bottom: 32px; }
.astro-form-eyebrow {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--ab-gold); margin-bottom: 10px;
    font-family: inherit;
}
.astro-form-title {
    font-size: 32px; font-weight: 800; color: var(--ab-text);
    margin: 0 0 4px; line-height: 1.2; font-family: inherit;
}

/* ── Step indicators ────────────────────────────────────── */
.astro-steps {
    display: flex; align-items: center;
    justify-content: center; gap: 0;
    margin-bottom: 36px;
}
.astro-step {
    display: flex; flex-direction: column;
    align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600;
    color: var(--ab-muted); font-family: inherit;
    transition: color .25s; flex: 0 0 auto; padding: 0 6px;
}
.astro-step span {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: #ede8da; color: var(--ab-muted);
    font-weight: 700; font-size: 16px;
    border: 2px solid var(--ab-border);
    transition: all .25s; flex-shrink: 0; font-family: inherit;
}
.astro-step-line {
    flex: 1; height: 2px; background: var(--ab-border);
    min-width: 50px; max-width: 100px;
    transition: background .25s; margin-bottom: 29px;
}
.astro-step-line.done    { background: var(--ab-gold); }
.astro-step.active       { color: var(--ab-gold); }
.astro-step.active span  { background: var(--ab-gold); color: #fff; border-color: var(--ab-gold); }
.astro-step.done         { color: var(--ab-gold); }
.astro-step.done span    { background: var(--ab-gold); color: #fff; border-color: var(--ab-gold); }

/* ── Alert ──────────────────────────────────────────────── */
.astro-alert {
    padding: 12px 16px; border-radius: 9px;
    margin-bottom: 16px; font-size: 14px; font-family: inherit;
}
.astro-alert.error   { background: #fff0f0; border: 1px solid #f5a5a5; color: var(--ab-error); }
.astro-alert.info    { background: #f0f4ff; border: 1px solid #99b8f5; color: #1d4ed8; }
.astro-alert.success { background: #f0fff4; border: 1px solid #86efac; color: var(--ab-success); }

/* ── Sections ───────────────────────────────────────────── */
.astro-section { display: none; }
.astro-section.active { display: block; animation: abFade .22s ease; }
@keyframes abFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.astro-section-title {
    font-size: 20px; font-weight: 700; color: var(--ab-text);
    text-align: center; margin: 0 0 22px; font-family: inherit;
}
.astro-subsection-title {
    font-size: 18px; font-weight: 700; color: var(--ab-text);
    text-align: center; margin: 24px 0 14px; font-family: inherit;
}

/* ── Service cards (2-col grid) ─────────────────────────── */
.astro-service-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.astro-service-card {
    background: var(--ab-card); border: 1.5px solid var(--ab-border);
    border-radius: var(--ab-radius-sm); padding: 18px 16px;
    cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
    text-align: left; position: relative;
}
.astro-service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ab-shadow);
    border-color: rgba(200,152,14,.45);
}
.astro-service-card.selected {
    border-color: var(--ab-gold);
    background: var(--ab-gold-tint2);
    box-shadow: 0 0 0 3px var(--ab-gold-ring), var(--ab-gold-shadow);
}
.astro-service-icon { font-size: 22px; margin-bottom: 10px; line-height: 1; color: var(--ab-gold); }
.astro-service-name { font-size: 15px; font-weight: 700; color: var(--ab-text); margin-bottom: 5px; font-family: inherit; }
.astro-service-desc { font-size: 13px; color: var(--ab-sub); line-height: 1.5; }
.astro-service-starting { display: none; }

/* ── Mode cards ─────────────────────────────────────────── */
.astro-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.astro-mode-card {
    background: var(--ab-card); border: 1.5px solid var(--ab-border);
    border-radius: var(--ab-radius-sm); padding: 18px 16px;
    cursor: pointer; transition: all .2s; text-align: left;
    display: flex; align-items: flex-start; gap: 12px;
    padding-right: 24px; position: relative;
}
.astro-mode-card:hover { transform: translateY(-2px); box-shadow: var(--ab-shadow); border-color: rgba(200,152,14,.45); }
.astro-mode-card.selected {
    border-color: var(--ab-gold); background: var(--ab-gold-tint2);
    box-shadow: 0 0 0 3px var(--ab-gold-ring), var(--ab-gold-shadow);
}
/* Radio dot */
.astro-mode-card::after {
    content: ''; position: absolute; top: 14px; right: 14px;
    width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid var(--ab-border); background: #fff;
    transition: all .2s;
}
.astro-mode-card.selected::after {
    background: var(--ab-gold); border-color: var(--ab-gold);
    box-shadow: inset 0 0 0 4px #fff;
}
.astro-mode-icon  { font-size: 20px; flex-shrink: 0; margin-top: 1px; line-height: 1; color: var(--ab-gold); }
.astro-mode-name  { font-size: 15px; font-weight: 700; color: var(--ab-text); margin-bottom: 3px; font-family: inherit; }
.astro-mode-desc  { font-size: 13px; color: var(--ab-sub); line-height: 1.45; }
.astro-mode-from  { display: none; }

/* ── Plan cards ─────────────────────────────────────────── */
.astro-plans-wrap   { margin-bottom: 24px; }
.astro-plans-title  {
    font-size: 18px; font-weight: 700; color: var(--ab-text);
    text-align: center; margin: 0 0 14px;
    text-transform: none; letter-spacing: 0; font-family: inherit;
}
.astro-plan-cards   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.astro-plan-card {
    background: var(--ab-card); border: 1.5px solid var(--ab-border);
    border-radius: var(--ab-radius-sm); padding: 16px 14px;
    cursor: pointer; transition: all .2s; text-align: left; position: relative;
}
.astro-plan-card:hover { transform: translateY(-2px); box-shadow: var(--ab-shadow); border-color: rgba(200,152,14,.45); }
.astro-plan-card.selected {
    border-color: var(--ab-gold); background: var(--ab-gold-tint2);
    box-shadow: 0 0 0 3px var(--ab-gold-ring), var(--ab-gold-shadow);
}
.astro-plan-name  { font-size: 14px; font-weight: 700; color: var(--ab-text); margin-bottom: 4px; font-family: inherit; }
.astro-plan-dur   { font-size: 13px; color: var(--ab-sub); margin-bottom: 8px; }
.astro-plan-price { font-size: 18px; font-weight: 700; color: var(--ab-gold-d); font-family: inherit; }
.astro-plan-desc  { font-size: 12px; color: var(--ab-muted); margin-top: 4px; }

/* ── Calendar + Slots ───────────────────────────────────── */
.astro-datetime-outer {
    background: var(--ab-card); border: 1.5px solid var(--ab-border);
    border-radius: var(--ab-radius-sm); overflow: hidden; margin-bottom: 4px;
}
.astro-datetime-wrap { display: flex; flex-wrap: wrap; }
.astro-calendar-wrap {
    flex: 1; min-width: 260px; padding: 20px;
    border-right: 1px solid var(--ab-border);
}
.astro-slots-wrap    { flex: 1.2; min-width: 220px; padding: 20px; }
.astro-calendar-wrap label,
.astro-slots-wrap label {
    display: block; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--ab-sub); margin-bottom: 14px; font-family: inherit;
}

/* jQuery UI Datepicker overrides */
#astro-booking-form .ui-datepicker,
#astro-booking-form .ui-datepicker-inline { display: block !important; }
#astro-booking-form .ui-datepicker {
    background: transparent !important; border: none !important;
    width: 100% !important; font-family: inherit !important;
    font-size: 13px !important; color: var(--ab-text) !important;
    padding: 0 !important; box-shadow: none !important;
}
#astro-booking-form .ui-datepicker-header {
    background: transparent !important; border: none !important;
    padding: 0 0 12px !important;
}
#astro-booking-form .ui-datepicker-title {
    font-size: 15px !important; font-weight: 700 !important;
    color: var(--ab-text) !important; text-align: center !important;
    font-family: inherit !important;
}
#astro-booking-form .ui-datepicker-prev,
#astro-booking-form .ui-datepicker-next {
    top: 0 !important; cursor: pointer !important;
    background: transparent !important; border: none !important;
    border-radius: 6px !important; transition: background .15s !important;
    width: 28px !important; height: 28px !important;
}
#astro-booking-form .ui-datepicker-prev:hover,
#astro-booking-form .ui-datepicker-next:hover { background: var(--ab-gold-tint) !important; }
#astro-booking-form .ui-datepicker-prev span,
#astro-booking-form .ui-datepicker-next span {
    background-image: none !important; text-indent: 0 !important;
    overflow: visible !important; color: var(--ab-text) !important;
    font-size: 16px !important; font-weight: 700 !important;
    width: auto !important; height: auto !important;
}
#astro-booking-form .ui-datepicker th {
    color: var(--ab-sub) !important; font-size: 11px !important;
    text-transform: uppercase !important; padding: 6px 2px !important;
    font-family: inherit !important;
}
#astro-booking-form .ui-datepicker td { padding: 2px !important; }
#astro-booking-form .ui-datepicker td a,
#astro-booking-form .ui-datepicker td span {
    display: block !important; text-align: center !important;
    border-radius: 8px !important; padding: 7px 4px !important;
    border: none !important; background: transparent !important;
    color: var(--ab-text) !important; font-size: 13px !important;
    font-weight: 500 !important; text-decoration: none !important;
    transition: all .15s !important; font-family: inherit !important;
}
#astro-booking-form .ui-datepicker td a:hover { background: var(--ab-gold-tint) !important; }
#astro-booking-form .ui-datepicker td.ui-datepicker-today a,
#astro-booking-form .ui-datepicker td.ui-datepicker-current-day a {
    background: var(--ab-gold) !important; color: #fff !important; font-weight: 700 !important;
}
#astro-booking-form .ui-datepicker td.astro-available-day a { font-weight: 700 !important; }
#astro-booking-form .ui-datepicker td.ui-state-disabled span,
#astro-booking-form .ui-datepicker td.ui-state-disabled a { opacity: .4 !important; }

/* Slot buttons */
.astro-slots-day-group { margin-bottom: 16px; }
.astro-slots-day-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--ab-sub); margin-bottom: 8px;
    display: block; font-family: inherit;
}
.astro-slots-row { display: flex; flex-wrap: wrap; gap: 8px; }
.astro-slot-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; background: var(--ab-card);
    border: 1.5px solid var(--ab-border); border-radius: 8px;
    color: var(--ab-text); cursor: pointer;
    font-size: 13px; font-weight: 500;
    transition: all .15s; font-family: inherit; white-space: nowrap;
}
.astro-slot-btn::before { content: '🕐'; font-size: 12px; }
.astro-slot-btn:hover    { border-color: var(--ab-gold); background: var(--ab-gold-tint2); }
.astro-slot-btn.selected { border-color: var(--ab-gold); background: var(--ab-gold); color: #fff; font-weight: 700; }
.astro-muted { color: var(--ab-muted); font-style: italic; font-size: 13px; }

/* ── Form fields ─────────────────────────────────────────── */
.astro-form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.astro-field      { display: flex; flex-direction: column; gap: 6px; }
.astro-field-full { grid-column: 1 / -1; }
.astro-field label {
    font-size: 13px; font-weight: 600; color: var(--ab-text); font-family: inherit;
}
.astro-field input,
.astro-field select,
.astro-field textarea {
    padding: 11px 14px; background: var(--ab-card);
    border: 1.5px solid var(--ab-border); border-radius: 9px;
    font-size: 14px; font-family: inherit; color: var(--ab-text);
    transition: border-color .15s, box-shadow .15s; -webkit-appearance: none;
}
.astro-field input::placeholder,
.astro-field textarea::placeholder { color: var(--ab-muted); }
.astro-field input:focus,
.astro-field select:focus,
.astro-field textarea:focus {
    outline: none; border-color: var(--ab-gold);
    box-shadow: 0 0 0 3px var(--ab-gold-ring);
}
.astro-field select option { background: #fff; color: var(--ab-text); }
.astro-dmy-row { display: flex; gap: 8px; }
.astro-dmy-row select { flex: 1; min-width: 0; }
.astro-checkbox-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--ab-sub); cursor: pointer;
    margin-top: 6px; font-weight: 400; font-family: inherit;
}
.astro-checkbox-label input[type=checkbox] {
    width: 16px; height: 16px; accent-color: var(--ab-gold); cursor: pointer;
}

/* ── Booking summary panel (step 3 top) ─────────────────── */
.astro-booking-summary-panel {
    background: var(--ab-gold-tint2); border: 1.5px solid var(--ab-border);
    border-radius: var(--ab-radius-sm); padding: 16px 20px; margin-bottom: 22px;
}
.astro-booking-summary-panel .astro-summary-row {
    display: flex; justify-content: space-between;
    padding: 7px 0; border-bottom: 1px solid var(--ab-border);
    font-size: 14px; gap: 12px; align-items: baseline;
}
.astro-booking-summary-panel .astro-summary-row:last-child { border-bottom: none; }
.astro-booking-summary-panel .label { color: var(--ab-sub); }
.astro-booking-summary-panel .value { font-weight: 600; color: var(--ab-text); text-align: right; }
.astro-booking-summary-panel .price-value { color: var(--ab-gold-d); font-weight: 700; }

/* Legacy .astro-summary */
.astro-summary {
    background: var(--ab-gold-tint2); border: 1.5px solid var(--ab-border);
    border-radius: var(--ab-radius-sm); padding: 16px 20px; margin-bottom: 22px;
}
.astro-summary-row {
    display: flex; justify-content: space-between; padding: 7px 0;
    border-bottom: 1px solid var(--ab-border); font-size: 14px; gap: 12px; align-items: center;
}
.astro-summary-row:last-child    { border-bottom: none; }
.astro-summary-row .label        { color: var(--ab-sub); flex-shrink: 0; }
.astro-summary-row .value        { font-weight: 600; color: var(--ab-text); text-align: right; }
.astro-summary-row.total-row .value { font-size: 18px; font-weight: 800; color: var(--ab-gold-d); }

/* ── Coupon ──────────────────────────────────────────────── */
.astro-coupon-wrap { margin-bottom: 22px; }
.astro-coupon-wrap > label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; color: var(--ab-text); font-family: inherit; }
.astro-coupon-row { display: flex; gap: 8px; }
.astro-coupon-row input {
    flex: 1; padding: 11px 14px; background: var(--ab-card);
    border: 1.5px solid var(--ab-border); border-radius: 9px;
    font-size: 14px; color: var(--ab-text); font-family: inherit;
}
.astro-coupon-row input::placeholder { color: var(--ab-muted); }
.astro-coupon-row input:focus { outline: none; border-color: var(--ab-gold); box-shadow: 0 0 0 3px var(--ab-gold-ring); }

/* ── Buttons ─────────────────────────────────────────────── */
.astro-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 24px; border-radius: 9px;
    font-size: 14px; font-weight: 600; border: none;
    cursor: pointer; transition: all .2s;
    text-decoration: none; font-family: inherit; white-space: nowrap;
}
/* Primary = gold gradient (matches uploaded CSS exactly) */
.astro-btn-next,
.astro-btn-select,
.astro-btn-pay {
    background: var(--ab-gold-grad);
    color: #2e1800;
    box-shadow: 0 6px 18px rgba(156,110,18,.20);
}
.astro-btn-next:hover,
.astro-btn-select:hover,
.astro-btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(156,110,18,.30);
}
/* Ghost/back button */
.astro-btn-back {
    background: transparent; color: var(--ab-sub);
    border: 1.5px solid var(--ab-border);
}
.astro-btn-back:hover { border-color: rgba(200,152,14,.45); color: var(--ab-text); background: var(--ab-gold-tint2); }
.astro-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.astro-nav {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px;
    margin-top: 26px; flex-wrap: wrap;
}

/* ── Footer note ─────────────────────────────────────────── */
.astro-slots-note {
    text-align: center; color: var(--ab-gold);
    font-size: 13px; margin-top: 18px; font-weight: 500;
}

/* ── Meeting box ─────────────────────────────────────────── */
.astro-meeting-box {
    background: var(--ab-gold-tint2); border: 1.5px solid var(--ab-border);
    border-radius: var(--ab-radius-sm); padding: 20px; text-align: center; margin: 18px 0;
}

/* ── Success / failure ───────────────────────────────────── */
.astro-landing { max-width: 560px; margin: 36px auto; text-align: center; font-family: inherit; }
.astro-landing-icon { font-size: 60px; margin-bottom: 14px; line-height: 1; }
.astro-landing h2   { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: var(--ab-text); font-family: inherit; }
.astro-landing-sub  { color: var(--ab-sub); font-size: 15px; margin-bottom: 22px; }
.astro-landing-card {
    background: var(--ab-gold-tint2); border-radius: var(--ab-radius-sm);
    padding: 18px 20px; margin: 0 auto 22px; text-align: left; border: 1.5px solid var(--ab-border);
}
.astro-landing-row {
    display: flex; justify-content: space-between; padding: 9px 0;
    border-bottom: 1px solid var(--ab-border); font-size: 14px; gap: 12px; color: var(--ab-text);
}
.astro-landing-row:last-child { border-bottom: none; }
.astro-landing-note { font-size: 13px; color: var(--ab-sub); margin-bottom: 22px; line-height: 1.6; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
    .astro-form-card     { padding: 28px 18px; border-radius: 14px; }
    .astro-form-title    { font-size: 24px; }
    .astro-form-grid     { grid-template-columns: 1fr; }
    .astro-service-grid  { grid-template-columns: 1fr; }
    .astro-mode-cards    { grid-template-columns: 1fr; }
    .astro-plan-cards    { grid-template-columns: 1fr; }
    .astro-datetime-wrap { flex-direction: column; }
    .astro-calendar-wrap { border-right: none; border-bottom: 1px solid var(--ab-border); }
    .astro-steps         { gap: 0; }
    .astro-step span     { width: 32px; height: 32px; font-size: 13px; }
    .astro-step          { font-size: 10px; }
    .astro-step-line     { min-width: 20px; max-width: 44px; }
    .astro-nav           { flex-direction: column; }
    .astro-nav .astro-btn { width: 100%; justify-content: center; }
    .astro-dmy-row       { flex-wrap: wrap; }
}
