:root {
  --phd-bg: #f7f1e8;
  --phd-surface: rgba(255, 251, 247, 0.84);
  --phd-surface-strong: #fffaf5;
  --phd-ink: #21313a;
  --phd-muted: #5c6d73;
  --phd-line: #d8c8ba;
  --phd-line-strong: #cab6a4;
  --phd-primary: #165e5a;
  --phd-primary-strong: #114946;
  --phd-accent: #bb744c;
  --phd-shadow: 0 28px 70px rgba(33, 49, 58, 0.12);
  --phd-shadow-soft: 0 16px 36px rgba(33, 49, 58, 0.08);
  --phd-radius-xl: 32px;
  --phd-radius-lg: 22px;
  --phd-radius-md: 16px;
}

.phd-app {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--phd-ink);
  background:
    radial-gradient(circle at top left, rgba(22, 94, 90, 0.16), transparent 32%),
    radial-gradient(circle at right 15%, rgba(187, 116, 76, 0.18), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f6efe5 100%);
}

.phd-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.phd-shell--narrow {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.phd-header-wrap {
  padding-top: calc(24px + env(safe-area-inset-top));
}

.phd-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(216, 200, 186, 0.8);
  border-radius: 999px;
  background: rgba(255, 251, 247, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(33, 49, 58, 0.08);
}

.phd-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.phd-brand:hover {
  opacity: 0.9;
}

.phd-brand img {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(17, 73, 70, 0.12);
  flex: none;
}

.phd-brand strong {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phd-brand span {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--phd-muted);
}

.phd-header-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.phd-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.phd-nav a,
.phd-utility-link {
  color: var(--phd-muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.phd-nav a:hover,
.phd-utility-link:hover {
  color: var(--phd-primary);
}

.phd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.phd-button:hover {
  transform: translateY(-1px);
}

.phd-button:focus-visible,
.phd-input-wrapper input:focus-visible,
.phd-input-wrapper select:focus-visible,
.phd-input-wrapper textarea:focus-visible,
.phd-choice-chip:focus-within,
.phd-choice-chip input:focus-visible {
  outline: 3px solid rgba(22, 94, 90, 0.18);
  outline-offset: 2px;
}

.phd-button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--phd-primary) 0%, #1f756f 100%);
  box-shadow: 0 18px 34px rgba(22, 94, 90, 0.22);
}

.phd-button--primary:hover {
  background: linear-gradient(135deg, var(--phd-primary-strong) 0%, var(--phd-primary) 100%);
}

.phd-button--secondary {
  color: var(--phd-ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(216, 200, 186, 0.94);
}

.phd-button--ghost {
  min-height: 44px;
  padding: 0 18px;
  color: var(--phd-ink);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(202, 182, 164, 0.74);
}

.phd-main {
  padding-bottom: 40px;
}

.phd-footer {
  padding: 0 0 44px;
}

.phd-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(216, 200, 186, 0.95);
  border-radius: 24px;
  background: rgba(255, 251, 247, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--phd-shadow-soft);
}

.phd-footer__copy {
  margin: 0;
  color: var(--phd-muted);
  font-size: 0.95rem;
}

.phd-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.phd-footer__links a {
  color: var(--phd-primary);
  font-weight: 700;
  text-decoration: none;
}

.phd-footer__links a:hover {
  color: var(--phd-primary-strong);
}

.phd-mobile-dock {
  display: none;
}

.phd-eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--phd-accent);
}

.phd-display {
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

.phd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0 46px;
}

.phd-hero h1,
.phd-success-panel h1,
.phd-panel h2,
.phd-form-intro h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.94;
}

.phd-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
}

.phd-lead {
  max-width: 38rem;
  margin: 22px 0 0;
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--phd-muted);
}

.phd-lead--tight {
  margin-top: 18px;
}

.phd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.phd-hero-visual {
  position: relative;
}

.phd-hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px -10px -18px 18px;
  border-radius: var(--phd-radius-xl);
  background: linear-gradient(135deg, rgba(22, 94, 90, 0.22), rgba(187, 116, 76, 0.12));
  filter: blur(20px);
}

.phd-portrait-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(202, 182, 164, 0.95);
  border-radius: var(--phd-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 245, 238, 0.92));
  box-shadow: var(--phd-shadow);
}

.phd-portrait-card--floating {
  animation: phd-float 8s ease-in-out infinite;
  will-change: transform;
}

.phd-portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.phd-panel,
.phd-success-panel,
.phd-status-card {
  border: 1px solid rgba(216, 200, 186, 0.95);
  border-radius: var(--phd-radius-lg);
  background: var(--phd-surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--phd-shadow);
}

.phd-panel p,
.phd-success-panel p,
.phd-form-intro p {
  color: var(--phd-muted);
  line-height: 1.72;
}

.phd-booking-page {
  padding: 52px 0 28px;
}

.phd-status-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.phd-status-card {
  padding: 16px 18px;
  box-shadow: var(--phd-shadow-soft);
}

.phd-status-card--success {
  border-color: rgba(22, 94, 90, 0.25);
  background: rgba(22, 94, 90, 0.1);
}

.phd-status-card--error {
  border-color: rgba(163, 60, 47, 0.22);
  background: rgba(163, 60, 47, 0.1);
}

.phd-status-card--info {
  border-color: rgba(187, 116, 76, 0.22);
  background: rgba(187, 116, 76, 0.1);
}

.phd-form-intro {
  max-width: 54rem;
  margin-bottom: 24px;
}

.phd-form-intro--compact {
  max-width: 48rem;
}

.phd-form-intro h1 {
  font-size: clamp(2.4rem, 4vw, 4.7rem);
  line-height: 0.98;
}

.phd-booking-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start;
}

.phd-booking-sidebar,
.phd-booking-main {
  display: grid;
  gap: 20px;
}

.phd-booking-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.phd-panel {
  padding: 30px;
}

.phd-panel--booking-form {
  display: grid;
  gap: 28px;
}

.phd-panel h2 {
  font-size: clamp(1.85rem, 2vw, 2.6rem);
  line-height: 1;
}

.phd-step-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--phd-accent);
}

.phd-step-label--tight {
  margin-bottom: 10px;
}

.phd-branch-section,
.phd-step-card {
  display: grid;
  gap: 22px;
}

.phd-step-card {
  padding-top: 6px;
  border-top: 1px solid rgba(202, 182, 164, 0.54);
}

.phd-branch-copy {
  max-width: 46rem;
  margin: -6px 0 0;
}

.phd-selection-summary {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(22, 94, 90, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(22, 94, 90, 0.08), rgba(255, 255, 255, 0.7));
}

.phd-selection-summary h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.02;
}

.phd-selection-summary p {
  margin: 0;
}

.phd-point-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.phd-point-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(202, 182, 164, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.phd-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--phd-accent), #cc8a5a);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  flex: none;
}

.phd-legal-page {
  display: grid;
  gap: 24px;
  padding: 56px 0 44px;
}

.phd-legal-grid {
  display: grid;
  gap: 20px;
}

.phd-legal-card {
  display: grid;
  gap: 16px;
}

.phd-legal-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  line-height: 1;
}

.phd-legal-card p {
  margin: 0;
}

.phd-legal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--phd-muted);
  line-height: 1.7;
}

.phd-legal-list strong {
  color: var(--phd-ink);
}

.phd-point-copy {
  margin: 0;
}

.phd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.phd-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phd-field-group--full {
  grid-column: 1 / -1;
}

.phd-field-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--phd-ink);
}

.phd-input-wrapper input,
.phd-input-wrapper select,
.phd-input-wrapper textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--phd-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--phd-ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.phd-input-wrapper textarea {
  min-height: 126px;
  resize: vertical;
}

.phd-input-wrapper input:focus,
.phd-input-wrapper select:focus,
.phd-input-wrapper textarea:focus {
  border-color: var(--phd-primary);
  box-shadow: 0 0 0 4px rgba(22, 94, 90, 0.08);
  outline: none;
}

.phd-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.phd-choice-grid--split {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.phd-choice-grid--details {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.phd-choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(202, 182, 164, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.phd-choice-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 94, 90, 0.4);
  background: rgba(22, 94, 90, 0.06);
}

.phd-choice-chip.is-selected {
  border-color: rgba(22, 94, 90, 0.64);
  background: rgba(22, 94, 90, 0.12);
  box-shadow: inset 0 0 0 1px rgba(22, 94, 90, 0.22);
}

.phd-choice-chip input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--phd-primary);
  flex: none;
}

.phd-choice-chip span {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--phd-ink);
}

.phd-choice-chip--stacked {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  min-height: 54px;
}

.phd-choice-chip--detail {
  min-height: 54px;
}

.phd-choice-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.phd-choice-caption {
  grid-column: 2;
  display: block;
  margin-top: -2px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--phd-muted);
}

.phd-choice-caption--accent {
  color: var(--phd-primary);
}

.phd-day-branch-stack {
  display: grid;
  gap: 14px;
}

.phd-day-branch {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(216, 200, 186, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.phd-day-branch__header {
  display: grid;
  gap: 4px;
}

.phd-day-branch__header h3,
.phd-day-branch__header p {
  margin: 0;
}

.phd-day-branch__header h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--phd-ink);
}

.phd-day-branch__header p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--phd-muted);
}

.phd-slot-picker {
  border-top: 0;
}

.phd-slot-day-stack {
  display: grid;
  gap: 16px;
}

.phd-slot-day {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(216, 200, 186, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.phd-slot-day__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--phd-ink);
}

.phd-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.phd-slot-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(202, 182, 164, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.phd-slot-choice:has(input:checked) {
  border-color: rgba(22, 94, 90, 0.64);
  background: rgba(22, 94, 90, 0.12);
  box-shadow: inset 0 0 0 1px rgba(22, 94, 90, 0.22);
}

.phd-slot-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--phd-primary);
}

.phd-slot-choice span {
  display: grid;
  gap: 2px;
}

.phd-slot-choice strong,
.phd-slot-choice small {
  display: block;
}

.phd-slot-choice strong {
  font-size: 1.05rem;
  color: var(--phd-ink);
}

.phd-slot-choice small {
  font-size: 0.82rem;
  color: var(--phd-muted);
}

.phd-field-help {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--phd-muted);
}

.phd-field-error {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #a33c2f;
}

.phd-form-actions {
  margin-top: 10px;
}

.phd-form-actions--split {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.phd-button--block {
  width: 100%;
}

.phd-after-send {
  background: rgba(255, 255, 255, 0.76);
}

.phd-success-shell {
  padding: 56px 0 40px;
}

.phd-success-panel {
  padding: 42px 34px;
  text-align: center;
}

.phd-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(22, 94, 90, 0.14);
  color: var(--phd-primary);
  font-size: 2.3rem;
  font-weight: 800;
}

.phd-success-panel h1 {
  font-size: clamp(2.35rem, 4vw, 4.4rem);
}

.phd-success-panel p {
  max-width: 38rem;
  margin: 18px auto 0;
}

@keyframes phd-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phd-portrait-card--floating {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .phd-booking-layout,
  .phd-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .phd-header,
  .phd-header-links,
  .phd-nav,
  .phd-actions,
  .phd-footer__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .phd-header {
    border-radius: 32px;
  }

  .phd-nav {
    gap: 12px;
  }

  .phd-booking-page,
  .phd-success-shell {
    padding-top: 36px;
  }
}

@media (max-width: 720px) {
  .phd-shell,
  .phd-shell--narrow {
    width: min(100% - 24px, 1180px);
  }

  .phd-hero {
    padding-top: 44px;
  }

  .phd-hero h1,
  .phd-form-intro h1,
  .phd-success-panel h1 {
    font-size: clamp(2.25rem, 12vw, 4rem);
  }

  .phd-form-grid {
    grid-template-columns: 1fr;
  }

  .phd-panel,
  .phd-success-panel {
    padding: 24px;
  }

  .phd-main {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .phd-mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(216, 200, 186, 0.94);
    border-radius: 28px;
    background: rgba(255, 251, 247, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 44px rgba(33, 49, 58, 0.16);
  }

  .phd-mobile-dock a {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 20px;
    color: var(--phd-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .phd-mobile-dock a .material-symbols-outlined {
    font-size: 1.35rem;
  }

  .phd-mobile-dock a.is-active {
    color: var(--phd-primary);
    background: rgba(22, 94, 90, 0.1);
  }
}
