:root {
  --background: #0c0c0c;
  --foreground: #f3f1ed;
  --primary: #88bbd6;
  --primary-foreground: #0c0c0c;
  --secondary: #b69714;
  --muted: #a8a29e;
  --card: #151515;
  --border: rgba(255, 255, 255, 0.14);
  --input: rgba(255, 255, 255, 0.18);
  --danger: #e26565;
  --danger-bg: rgba(226, 101, 101, 0.08);
  --radius: 8px;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

fieldset {
  min-inline-size: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(136, 187, 214, 0.38);
}

.app-root {
  min-height: 100dvh;
}

.shell {
  width: min(100%, 42rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.intro-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem;
}

.form-shell {
  padding-block: 4rem 3.5rem;
}

.page-head {
  margin-bottom: 2.1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

.intro-title {
  max-width: 36rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  font-size: clamp(2.35rem, 7vw, 3.05rem);
  line-height: 1.05;
}

.intro-copy {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: rgba(243, 241, 237, 0.72);
  font-size: 1rem;
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 2.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.72rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.primary-button {
  background: var(--primary);
  color: var(--primary-foreground);
}

.primary-button:hover {
  background: #9bc7df;
}

.primary-button:disabled {
  opacity: 0.64;
}

.secondary-button {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.secondary-button:hover {
  border-color: rgba(243, 241, 237, 0.5);
}

.ghost-button {
  background: transparent;
  border-color: transparent;
  color: rgba(243, 241, 237, 0.78);
}

.ghost-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--foreground);
}

.ghost-button:disabled {
  color: rgba(168, 162, 158, 0.42);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
}

.progress-region {
  margin-bottom: 2.2rem;
}

.progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(243, 241, 237, 0.72);
  font-size: 0.82rem;
}

.progress-track {
  height: 4px;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.25s ease;
}

.section-block {
  margin-top: 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-title {
  color: var(--foreground);
  font-size: clamp(1.9rem, 5vw, 2.35rem);
  line-height: 1.15;
}

.section-description {
  max-width: 38rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.fields-grid {
  display: grid;
  gap: 1.65rem;
}

.field-label,
.field-legend {
  display: block;
  color: rgba(243, 241, 237, 0.95);
  font-size: 0.91rem;
  font-weight: 700;
}

.required-mark {
  margin-left: 0.25rem;
  color: var(--secondary);
}

.text-input,
.textarea-input {
  width: 100%;
  margin-top: 0.65rem;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: #151515;
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
  padding: 0.78rem 0.9rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.textarea-input {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.55;
}

.text-input::placeholder,
.textarea-input::placeholder {
  color: rgba(168, 162, 158, 0.68);
}

.text-input:focus,
.textarea-input:focus {
  border-color: var(--primary);
  background: #181818;
}

.helper {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.options-grid {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.8rem;
}

.option-card,
.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #151515;
  cursor: pointer;
  padding: 0.85rem 0.9rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.option-card:hover,
.consent-card:hover {
  border-color: rgba(243, 241, 237, 0.34);
}

.option-card.selected,
.consent-card.selected {
  border-color: var(--primary);
  background: rgba(136, 187, 214, 0.06);
}

.sr-control {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
}

.control-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  border: 1px solid rgba(243, 241, 237, 0.72);
}

.radio-mark {
  border-radius: 50%;
}

.checkbox-mark {
  border-radius: 4px;
}

.option-card.selected .control-mark,
.consent-card.selected .control-mark {
  border-color: var(--primary);
}

.option-card.selected .checkbox-mark,
.consent-card.selected .checkbox-mark {
  background: var(--primary);
}

.radio-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

.check-icon {
  width: 0.65rem;
  height: 0.65rem;
  color: var(--primary-foreground);
}

.option-text {
  color: rgba(243, 241, 237, 0.92);
  font-size: 0.95rem;
  line-height: 1.42;
}

.yesno-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.pill-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #151515;
  color: rgba(243, 241, 237, 0.84);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.pill-button.selected {
  border-color: var(--primary);
  background: rgba(136, 187, 214, 0.1);
  color: var(--primary);
}

.consent-card {
  align-items: flex-start;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.honeypot {
  display: none;
}

.is-invalid .text-input,
.is-invalid .textarea-input,
.is-invalid.option-card,
.is-invalid.consent-card,
.field.is-invalid .option-card,
.field.is-invalid .pill-button {
  border-color: rgba(226, 101, 101, 0.78);
}

.validation-box,
.error-box {
  margin-top: 2rem;
  border: 1px solid rgba(226, 101, 101, 0.48);
  border-radius: 8px;
  background: var(--danger-bg);
  padding: 1rem;
}

.error-title {
  color: var(--foreground);
  font-size: 1.18rem;
  line-height: 1.2;
}

.error-copy {
  margin: 0.5rem 0 0;
  color: rgba(243, 241, 237, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.validation-group {
  margin-top: 0.85rem;
  color: rgba(243, 241, 237, 0.86);
  font-size: 0.86rem;
}

.validation-group strong {
  color: var(--secondary);
  font-weight: 600;
}

.validation-group ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.validation-group li + li {
  margin-top: 0.16rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.turnstile-wrap {
  margin-top: 2rem;
}

.turnstile-missing {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.9rem;
}

.spinner {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.45rem;
  border: 2px solid rgba(12, 12, 12, 0.22);
  border-top-color: var(--primary-foreground);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -0.12rem;
}

.calendly-head {
  margin-bottom: 1.25rem;
}

.calendly-inline-widget {
  min-width: 320px;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #151515;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .shell {
    padding-inline: 1.25rem;
  }

  .intro-shell,
  .form-shell {
    padding-block: 2.6rem 2.5rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  .intro-title {
    font-size: 2rem;
  }

  .intro-copy {
    font-size: 0.98rem;
  }

  .form-nav {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .link-button {
    width: 100%;
  }

  .calendly-inline-widget {
    height: 720px;
  }
}
