/* ============================================================
   appointment.css — Styles specific to appointment.html
   ============================================================ */

/* ------------------------------------------------------------
   PAGE HERO (dark)
   ------------------------------------------------------------ */
.page-hero {
  padding: 10rem 5% 5rem;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 151, 90, 0.15), transparent 70%);
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border: 1px solid rgba(184, 151, 90, 0.2);
  border-radius: 50%;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  color: white;
  line-height: 1.15;
  max-width: 600px;
}

.page-hero h1 em { font-style: italic; color: var(--gold-light); }

.page-hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin-top: 1.2rem;
  font-weight: 300;
}

.breadcrumb { color: rgba(255, 255, 255, 0.4); }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb-sep { color: rgba(255, 255, 255, 0.2); }

.hero-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(184, 151, 90, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   MAIN CONTENT LAYOUT
   ------------------------------------------------------------ */
.main-content { padding: 6rem 5%; }

.main-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */
.form-header { margin-bottom: 3rem; }

.form-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.form-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.form-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--charcoal);
}

.form-title em { font-style: italic; color: var(--gold); }

.form-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.form-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0 2.5rem;
}

/* Multi-step indicator */
.steps {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}

.step.active .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.step.done .step-num {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: white;
}

.step-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.step.active .step-label {
  color: var(--gold);
  font-weight: 500;
}

/* Form pages */
.form-page { display: none; }
.form-page.active { display: block; animation: fadeUp 0.4s ease; }

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.field-group.full { grid-template-columns: 1fr; }

.field-wrap { position: relative; }

.field-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.field-label span { color: var(--gold); }

.field-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
  background: var(--warm-white);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.field-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.1);
}

.field-input::placeholder { color: var(--text-muted); }

select.field-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%238A7F74'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.field-input {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.3rem;
  display: none;
}

.field-wrap.error .field-input { border-color: var(--error); }
.field-wrap.error .field-error { display: block; }

/* Procedure pills */
.procedure-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.proc-pill {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  color: var(--text-body);
  font-family: 'DM Sans', sans-serif;
}

.proc-pill:hover,
.proc-pill.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.proc-pills-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: block;
  font-weight: 500;
}

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.time-slot {
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
}

.time-slot:hover,
.time-slot.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.time-slot.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--cream);
}

/* Navigation buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.btn-next {
  background: var(--gold);
  color: white;
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-next:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 151, 90, 0.3);
}

.btn-back {
  background: transparent;
  color: var(--text-muted);
  padding: 0.9rem 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-back:hover {
  border-color: var(--text-muted);
  color: var(--text-body);
}

/* Privacy note */
.privacy-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--cream);
  border-radius: 4px;
  margin-top: 1.5rem;
}

.privacy-icon { font-size: 1rem; flex-shrink: 0; }

.privacy-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Success state */
.success-state {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeUp 0.6s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 2rem;
}

.success-title {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.success-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.success-ref {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------ */
.sidebar { position: sticky; top: 100px; }

.sidebar-card {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar-card-header {
  background: var(--charcoal);
  padding: 1.5rem;
}

.sidebar-card-header h3 {
  font-size: 1.1rem;
  color: white;
  font-weight: 400;
}

.sidebar-card-header p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.3rem;
}

.sidebar-card-body { padding: 1.5rem; }

.sidebar-doctor {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sidebar-doctor-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sidebar-doctor-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.sidebar-doctor-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.sidebar-info-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sidebar-info-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.sidebar-info-text {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

.sidebar-info-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--charcoal);
}

.sidebar-cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  background: #25D366;
  color: white;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s;
  margin-bottom: 0.8rem;
}

.sidebar-cta-wa:hover { background: #1da855; }

.sidebar-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
}

.sidebar-cta-call:hover {
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
}

/* ------------------------------------------------------------
   TRUST STATS
   ------------------------------------------------------------ */
.trust-section { background: var(--ivory); padding: 5rem 5%; }

.trust-inner { max-width: 1200px; margin: 0 auto; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.trust-item {
  text-align: center;
  padding: 2rem;
  background: var(--warm-white);
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.4s;
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.trust-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
}

.trust-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ------------------------------------------------------------
   LOCATION / MAP
   ------------------------------------------------------------ */
.map-section { padding: 5rem 5%; background: var(--warm-white); }

.map-inner { max-width: 1200px; margin: 0 auto; }

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.map-placeholder {
  height: 360px;
  background: linear-gradient(135deg, var(--cream), #D8CDBF);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  gap: 0.8rem;
}

.map-placeholder span { font-size: 3rem; }
.map-placeholder p { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--text-muted); }

.map-info-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.map-info-title::before {
  content: '';
  display: block;
  width: 25px;
  height: 1px;
  background: var(--gold);
}

.map-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.map-info h2 em { color: var(--gold); font-style: italic; }

.map-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.map-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.map-detail-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.map-detail-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   RESPONSIVE — Appointment page
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .main-inner { grid-template-columns: 1fr; gap: 3rem; }
  .sidebar { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .field-group { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-badges { flex-direction: column; gap: 0.8rem; }
}
