/* Homeo Appointment – Frontend CSS */
:root {
  --hc: var(--homeo-color, #099099);
  --hc-dark: #077a82;
  --hc-light: #e6f7f8;
  --hc-glow: rgba(9,144,153,.18);
  --gray-50: #f8fafb;
  --gray-100: #f0f4f5;
  --gray-300: #c8d6d8;
  --gray-500: #6b8a8d;
  --gray-700: #2d4a4d;
  --gray-900: #0e2022;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(9,144,153,.10);
  --shadow-lg: 0 20px 60px rgba(9,144,153,.18);
  --ff: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.homeo-booking-wrap { font-family: var(--ff); color: var(--gray-900); }

/* HERO */
.homeo-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #0d2f33 55%, #144a50 100%);
  position: relative; padding: 72px 24px 56px; text-align: center; overflow: hidden;
}
.homeo-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(9,144,153,.28), transparent 70%);
  pointer-events: none;
}
.homeo-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: hFloat 7s ease-in-out infinite; }
.homeo-orb-1 { width: 320px; height: 320px; background: rgba(9,144,153,.22); top: -80px; left: -60px; }
.homeo-orb-2 { width: 200px; height: 200px; background: rgba(9,144,153,.15); bottom: -40px; right: -40px; animation-delay: 3.5s; }
@keyframes hFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-18px) scale(1.04)} }

.homeo-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(9,144,153,.22); border: 1px solid rgba(9,144,153,.4);
  color: #7de8ed; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 22px;
  animation: hFadeDown .7s ease both;
}
.h-dot { width: 7px; height: 7px; background: #7de8ed; border-radius: 50%; animation: hPulse 2s ease infinite; }
@keyframes hPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.homeo-hero-title {
  font-size: clamp(32px,5vw,56px); font-weight: 700; color: #fff;
  line-height: 1.18; margin-bottom: 16px; animation: hFadeDown .8s .1s ease both;
}
.homeo-hero-title em { font-style: normal; color: var(--hc); }
.homeo-hero-sub { color: rgba(255,255,255,.62); font-size: 16px; max-width: 520px; margin: 0 auto 36px; line-height: 1.7; animation: hFadeDown .8s .2s ease both; }
.homeo-hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; animation: hFadeDown .8s .35s ease both; }
.h-stat { text-align: center; }
.h-stat-num { font-size: 28px; font-weight: 700; color: var(--hc); line-height: 1; }
.h-stat-lbl { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; letter-spacing: .5px; }

@keyframes hFadeDown { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:translateY(0)} }

/* LAYOUT */
.homeo-layout {
  max-width: 1120px; margin: 0 auto; padding: 52px 20px 72px;
  display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start;
}
@media(max-width:860px) { .homeo-layout { grid-template-columns: 1fr; } }

/* FORM CARD */
.homeo-form-card {
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: hFadeUp .7s .1s ease both;
}
@keyframes hFadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.homeo-form-header {
  background: linear-gradient(135deg, var(--hc), var(--hc-dark));
  padding: 28px 32px 24px; position: relative; overflow: hidden;
}
.homeo-form-header::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08);
}
.homeo-form-header h2 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.homeo-form-header p { color: rgba(255,255,255,.72); font-size: 14px; margin: 0; }

.homeo-form-body { padding: 32px; }

/* PROGRESS */
.h-progress { display: flex; align-items: center; margin-bottom: 32px; }
.h-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.h-step:not(:last-child)::after {
  content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px;
  background: var(--gray-300); z-index: 0; transition: background .4s;
}
.h-step.done:not(:last-child)::after { background: var(--hc); }
.h-circle {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--gray-300);
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--gray-500); position: relative; z-index: 1; transition: all .3s;
}
.h-step.done .h-circle { background: var(--hc); border-color: var(--hc); color: #fff; }
.h-step.active .h-circle { border-color: var(--hc); color: var(--hc); box-shadow: 0 0 0 4px var(--hc-glow); }
.h-step-lbl { font-size: 10px; color: var(--gray-500); font-weight: 500; letter-spacing: .3px; }
.h-step.done .h-step-lbl, .h-step.active .h-step-lbl { color: var(--hc); }

/* SECTIONS */
.h-section { display: none; }
.h-section.active { display: block; animation: hSecIn .4s ease both; }
@keyframes hSecIn { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }

.h-section-title {
  font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.h-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--hc-light);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}

/* FIELDS */
.h-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media(max-width:560px) { .h-field-row { grid-template-columns: 1fr; } }
.h-field-full { margin-bottom: 16px; }

.h-field label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-700); letter-spacing: .4px; text-transform: uppercase; margin-bottom: 7px; }
.h-field label span { color: #e53e3e; margin-left: 2px; }

.h-field input, .h-field select, .h-field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-family: var(--ff); font-size: 15px; color: var(--gray-900);
  background: var(--gray-50); outline: none; transition: all .25s;
  -webkit-appearance: none; appearance: none;
}
.h-field input:focus, .h-field select:focus, .h-field textarea:focus {
  border-color: var(--hc); background: #fff; box-shadow: 0 0 0 3px var(--hc-glow);
}
.h-field input::placeholder, .h-field textarea::placeholder { color: var(--gray-300); }
.h-field textarea { resize: vertical; min-height: 90px; }

.h-select-wrap { position: relative; }
.h-select-wrap::after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--hc); pointer-events: none; font-size: 14px; }
.h-select-wrap select { padding-right: 36px; cursor: pointer; }

/* SLOTS */
.h-slot-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.h-slot {
  padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--gray-300);
  background: var(--gray-50); font-size: 13px; font-weight: 500; color: var(--gray-700);
  cursor: pointer; transition: all .22s; white-space: nowrap;
}
.h-slot:hover { border-color: var(--hc); color: var(--hc); background: var(--hc-light); }
.h-slot.selected { border-color: var(--hc); background: var(--hc); color: #fff; }
.h-slot.unavailable { opacity: .38; cursor: not-allowed; }
.h-loading { color: var(--gray-500); font-size: 13px; padding: 10px 0; }

/* REVIEW */
.h-review-box { background: var(--hc-light); border: 1.5px solid rgba(9,144,153,.18); border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; }
.h-review-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(9,144,153,.12); }
.h-review-row:last-child { border-bottom: none; }
.h-rv-lbl { font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .4px; }
.h-rv-val { font-size: 14px; font-weight: 600; color: var(--gray-900); }

/* CHECKBOXES */
.h-check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; cursor: pointer; }
.h-check-row input { display: none; }
.h-check-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--gray-300); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .2s; margin-top: 1px; background: var(--gray-50); }
.h-check-row input:checked + .h-check-box { background: var(--hc); border-color: var(--hc); }
.h-check-row input:checked + .h-check-box::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; }
.h-check-lbl { font-size: 13px; color: var(--gray-700); line-height: 1.5; }
.h-check-lbl a { color: var(--hc); text-decoration: none; font-weight: 600; }

/* BUTTONS */
.h-btn-row { display: flex; gap: 12px; margin-top: 28px; }
.h-btn {
  padding: 14px 28px; border-radius: 100px; font-size: 15px; font-weight: 600;
  font-family: var(--ff); cursor: pointer; border: none; transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.h-btn-primary { background: var(--hc); color: #fff; flex: 1; box-shadow: 0 6px 20px var(--hc-glow); justify-content: center; }
.h-btn-primary:hover { background: var(--hc-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(9,144,153,.4); color: #fff; }
.h-btn-secondary { background: transparent; color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.h-btn-secondary:hover { border-color: var(--hc); color: var(--hc); background: var(--hc-light); }
.h-btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* SUCCESS */
.h-success { display: none; text-align: center; padding: 48px 24px; }
.h-success.active { display: block; animation: hFadeUp .5s ease both; }
.h-success-icon { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--hc), var(--hc-dark)); margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff; box-shadow: 0 12px 36px rgba(9,144,153,.4); animation: hPopIn .6s cubic-bezier(.175,.885,.32,1.275) both; }
@keyframes hPopIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.h-success h3 { font-size: 26px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.h-success p { color: var(--gray-500); font-size: 15px; line-height: 1.7; max-width: 340px; margin: 0 auto 28px; }
.h-ref-code { display: inline-block; background: var(--hc-light); border: 1.5px solid rgba(9,144,153,.25); border-radius: 12px; padding: 12px 24px; font-size: 14px; font-weight: 700; color: var(--hc); margin-bottom: 24px; letter-spacing: 1px; }
.h-notif-note { background: var(--gray-100); border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--gray-500); text-align: left; display: flex; align-items: flex-start; gap: 10px; }
.h-notif-note strong { display: block; font-size: 13px; color: var(--gray-700); margin-bottom: 4px; }

/* SIDEBAR */
.homeo-sidebar { display: flex; flex-direction: column; gap: 20px; }

.h-notif-banner { background: linear-gradient(135deg, var(--hc), var(--hc-dark)); border-radius: 16px; padding: 18px 20px; color: #fff; animation: hFadeUp .7s .4s ease both; }
.h-notif-banner h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.h-notif-banner p { font-size: 12px; opacity: .78; line-height: 1.5; margin: 0 0 10px; }
.h-notif-banner ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.h-notif-banner ul li { font-size: 12px; display: flex; align-items: center; gap: 8px; }
.h-notif-banner ul li::before { content: '•'; opacity: .6; }

.h-side-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: hFadeUp .7s .25s ease both; }
.h-side-head { background: var(--gray-900); padding: 18px 22px; display: flex; align-items: center; gap: 10px; }
.h-side-head span { font-size: 20px; }
.h-side-head h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.h-side-body { padding: 18px 20px; }

.h-benefit { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; color: var(--gray-700); font-weight: 500; line-height: 1.4; transition: transform .2s; }
.h-benefit:last-child { border-bottom: none; }
.h-benefit:hover { transform: translateX(4px); }
.h-bicon { width: 36px; height: 36px; border-radius: 10px; background: var(--hc-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }

.h-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-trust { background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: 12px; padding: 14px 10px; text-align: center; transition: all .25s; }
.h-trust:hover { border-color: var(--hc); background: var(--hc-light); transform: translateY(-2px); }
.h-ti { font-size: 22px; margin-bottom: 4px; }
.h-tn { font-size: 18px; font-weight: 800; color: var(--hc); line-height: 1; }
.h-tt { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

.h-hour { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; color: var(--gray-700); }
.h-hour:last-child { border-bottom: none; }
.h-ht { color: var(--hc); font-weight: 600; }
.h-emerg { background: var(--hc-light); border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--hc); text-align: center; }

/* TOAST */
.h-toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px); padding: 12px 24px; border-radius: 100px; font-size: 14px; font-weight: 600; color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.2); z-index: 9999; opacity: 0; transition: all .35s cubic-bezier(.34,1.56,.64,1); white-space: nowrap; pointer-events: none; }
.h-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media(max-width:560px) {
  .homeo-form-body { padding: 20px 16px; }
  .homeo-form-header { padding: 22px 18px 18px; }
  .h-btn-row { flex-direction: column-reverse; }
  .h-btn-secondary { text-align: center; justify-content: center; }
}
