@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a3636;
  --primary-shadow: rgba(26, 54, 54, 0.25);
  --primary-light: rgba(26, 54, 54, 0.06);
  --primary-glow: rgba(26, 54, 54, 0.15);
  --bg: #eef2f2;
  --bg-gradient-start: #f4f7f7;
  --bg-gradient-end: #eef2f2;
  --surface: #fff;
  --surface-alt: #f4f7f7;
  --surface-input: #fafcfc;
  --border: #dce5e5;
  --border-light: #e8eeee;
  --text: #1a3636;
  --text-muted: #5c7a7a;
  --text-faint: #99aeb0;
  --text-disabled: #b5c4c4;
  --text-unavailable: #c9d5d5;
  --error: #c05050;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes checkDraw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

.wrapper {
  font-family: var(--font-body);
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
  color: var(--text);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-light);
  border-radius: 12px;
}

.title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 2px 0 0;
  font-weight: 400;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 0 4px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-dot-done {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--surface);
}

.step-dot-active {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--surface);
}

.step-dot-future {
  background: transparent;
  border: 2px solid var(--text-disabled);
  color: var(--text-disabled);
}

.step-label {
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: var(--text-faint);
}

.step-label-active {
  color: var(--primary);
}

.step-label-current {
  font-weight: 600;
}

.step-line {
  width: 40px;
  height: 2px;
  border-radius: 1px;
  margin: 0 8px;
  transition: background 0.3s ease;
  background: var(--border);
}

.step-line-done {
  background: var(--primary);
}

/* Main grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Calendar */
.calendar-panel {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px var(--primary-light), 0 8px 24px rgba(26, 54, 54, 0.04);
  border: 1px solid var(--primary-light);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--surface-alt);
}

.month-label {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cell {
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}

.cell-hidden {
  visibility: hidden;
}

.cell-past {
  color: var(--text-unavailable);
  cursor: default;
}

.cell-weekend {
  color: var(--text-unavailable);
  cursor: default;
}

.cell-today {
  font-weight: 700;
  color: var(--text);
}

.cell-selected {
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--primary-shadow);
}

.cell-clickable {
  cursor: pointer;
}

.cell-clickable:hover {
  background: var(--surface-alt);
}

.today-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bg);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot-selected {
  background: var(--primary);
}

.legend-dot-unavailable {
  background: var(--text-unavailable);
}

/* Right panel */
.right-panel {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px var(--primary-light), 0 8px 24px rgba(26, 54, 54, 0.04);
  border: 1px solid var(--primary-light);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Placeholder */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.placeholder-icon {
  margin-bottom: 16px;
  opacity: 0.35;
}

.placeholder-text {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 220px;
  line-height: 1.6;
}

/* Panel titles */
.panel-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.panel-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Time slots */
.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.time-slot {
  padding: 12px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
  position: relative;
  text-align: center;
  font-family: var(--font-body);
}

.time-slot:hover:not(:disabled) {
  border-color: var(--primary);
}

.time-booked {
  background: var(--surface-alt);
  color: var(--text-disabled);
  cursor: not-allowed;
  border-color: var(--border-light);
}

.time-chosen {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-shadow);
}

.booked-badge {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.required {
  color: var(--error);
}

.optional {
  color: var(--text-faint);
  font-weight: 400;
}

.input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  color: var(--text);
  outline: none;
  background: var(--surface-input);
  transition: border 0.2s ease;
  box-sizing: border-box;
  font-family: var(--font-body);
}

.input:focus {
  border-color: var(--primary);
}

.input-error {
  border-color: var(--error);
}

.textarea {
  min-height: 80px;
  resize: vertical;
  font-family: var(--font-body);
}

.err-text {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: block;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  font-family: var(--font-body);
}

.primary-btn:hover {
  opacity: 0.9;
}

.btn-arrow {
  margin-left: 6px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.ghost-btn:hover {
  background: var(--surface-alt);
}

.btn-back-arrow {
  margin-right: 4px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  font-family: var(--font-body);
}

.secondary-btn:hover {
  background: var(--surface-alt);
}

/* Confirmation */
.confirmed-wrap {
  background: var(--surface);
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 1px 3px var(--primary-light), 0 8px 24px rgba(26, 54, 54, 0.04);
  border: 1px solid var(--primary-light);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.check-circle {
  margin-bottom: 20px;
}

.check-mark {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.6s 0.3s ease forwards;
}

.confirmed-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
}

.confirmed-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.summary-card {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.summary-row.no-border {
  border-bottom: none;
}

.summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Footer */
.footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-faint);
}

.footer-dot {
  opacity: 0.5;
}

/* Animations */
.fade-up {
  animation: fadeUp 0.35s ease;
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

.scale-in {
  animation: scaleIn 0.5s ease;
}