: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,
.phd-footer-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,
.phd-footer-brand strong {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phd-brand span,
.phd-footer-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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--phd-muted);
}

.phd-mobile-dock {
  display: none;
}

.phd-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.phd-eyebrow,
.phd-card-kicker {
  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-card h2,
.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-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-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phd-card,
.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-card {
  padding: 28px;
}

.phd-card h2 {
  font-size: 1.7rem;
  line-height: 1.05;
}

.phd-card p:last-child,
.phd-panel p,
.phd-success-panel p,
.phd-form-intro p {
  color: var(--phd-muted);
  line-height: 1.72;
}

.phd-process-panel {
  margin-top: 28px;
  padding: 34px;
  text-align: center;
}

.phd-process-panel h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.phd-process-panel p {
  max-width: 38rem;
  margin: 16px auto 0;
}

.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 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-panel {
  padding: 30px;
}

.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-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-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-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  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-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-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,
  .phd-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .phd-header,
  .phd-footer,
  .phd-header-links,
  .phd-nav,
  .phd-actions {
    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-card,
  .phd-success-panel {
    padding: 24px;
  }

  .phd-main {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .phd-footer {
    padding-bottom: calc(120px + 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);
  }
}
