.kdia-intake {
  --kdia-ink: #2f2228;
  --kdia-muted: #76676d;
  --kdia-paper: #fffaf8;
  --kdia-blush: #f6e6e8;
  --kdia-blush-deep: #ebcfd4;
  --kdia-rose: #ad6875;
  --kdia-rose-dark: #8f5260;
  --kdia-gold: #b88b53;
  --kdia-line: rgba(84, 53, 62, .13);
  --kdia-shadow: 0 28px 80px rgba(72, 42, 52, .14);
  width: 100%;
  color: var(--kdia-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kdia-intake *,
.kdia-intake *::before,
.kdia-intake *::after {
  box-sizing: border-box;
}

.kdia-intake [hidden] {
  display: none !important;
}

/* Landing screen */

.kdia-launch {
  position: relative;
  isolation: isolate;
  max-width: 1120px;
  min-height: 660px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 96px);
  overflow: hidden;
  border: 1px solid var(--kdia-line);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 250, 248, .98), rgba(247, 229, 232, .93)),
    var(--kdia-paper);
  box-shadow: var(--kdia-shadow);
  transition: opacity .22s ease, transform .22s ease;
}

.kdia-launch::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 43%;
  height: 100%;
  content: "";
  border-left: 1px solid rgba(111, 72, 82, .08);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, .16) 0,
      rgba(255, 255, 255, .16) 1px,
      transparent 1px,
      transparent 18px
    );
}

.kdia-launch.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

.kdia-launch-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.kdia-eyebrow,
.kdia-step-number {
  margin: 0 0 14px;
  color: var(--kdia-rose-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.kdia-launch h2 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 7.2vw, 88px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.kdia-launch h2 em {
  color: var(--kdia-rose-dark);
  font-weight: 400;
}

.kdia-launch-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--kdia-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.kdia-launch-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 17px 20px 17px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--kdia-ink);
  box-shadow: 0 15px 32px rgba(55, 35, 42, .19);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.kdia-launch-button i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  font-style: normal;
  transition: transform .2s ease;
}

.kdia-launch-button:hover {
  background: #21171b;
  box-shadow: 0 18px 38px rgba(55, 35, 42, .24);
  transform: translateY(-2px);
}

.kdia-launch-button:hover i {
  transform: translateX(3px);
}

.kdia-launch-note {
  margin: 15px 0 0 4px;
  color: var(--kdia-muted);
  font-size: 13px;
}

.kdia-launch-services {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 5vw, 64px);
  bottom: clamp(30px, 6vw, 64px);
  display: grid;
  width: min(340px, 34%);
  gap: 10px;
}

.kdia-launch-services span {
  padding: 13px 17px;
  border: 1px solid rgba(87, 53, 63, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 9px 24px rgba(86, 53, 63, .07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  backdrop-filter: blur(12px);
}

.kdia-launch-services span:nth-child(2) {
  transform: translateX(-24px);
}

.kdia-launch-services span:nth-child(3) {
  transform: translateX(12px);
}

.kdia-launch-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
}

.kdia-launch-orb-one {
  top: -150px;
  right: -90px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(195, 139, 151, .28), rgba(195, 139, 151, 0) 68%);
}

.kdia-launch-orb-two {
  bottom: -230px;
  left: 19%;
  width: 510px;
  height: 510px;
  background: radial-gradient(circle, rgba(194, 157, 108, .2), rgba(194, 157, 108, 0) 68%);
}

/* Intake shell */

.kdia-intake-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid var(--kdia-line);
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 250, 248, .98), rgba(255, 250, 248, .98)),
    var(--kdia-paper);
  box-shadow: var(--kdia-shadow);
}

.kdia-intake-shell.is-entering {
  animation: kdia-shell-enter .45s ease both;
}

@keyframes kdia-shell-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kdia-intake-header {
  max-width: 700px;
  margin-bottom: 28px;
}

.kdia-intake-header h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.8vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.kdia-intake-header p:not(.kdia-eyebrow),
.kdia-step-copy p:not(.kdia-step-number) {
  color: var(--kdia-muted);
  line-height: 1.7;
}

.kdia-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 42px;
  color: var(--kdia-muted);
  font-size: 12px;
}

.kdia-progress > div {
  height: 5px;
  overflow: hidden;
  flex: 1;
  border-radius: 999px;
  background: #eadfe1;
}

.kdia-progress i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kdia-rose), var(--kdia-gold));
  transition: width .3s ease;
}

.kdia-step {
  min-height: 360px;
}

.kdia-step-copy {
  max-width: 760px;
  margin-bottom: 30px;
}

.kdia-step h3,
.kdia-success h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
}

/* Selectable cards */

.kdia-service-grid,
.kdia-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kdia-service-card,
.kdia-choice {
  position: relative;
  min-height: 108px;
  padding: 22px 48px 22px 22px;
  border: 1px solid #e3d4d7;
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 7px 20px rgba(84, 52, 61, .045);
  color: var(--kdia-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.kdia-service-card::after,
.kdia-choice::after {
  position: absolute;
  top: 20px;
  right: 19px;
  display: grid;
  width: 25px;
  height: 25px;
  content: "✓";
  place-items: center;
  border: 1px solid #dcc8cc;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
  transition: .18s ease;
}

.kdia-service-card:hover,
.kdia-choice:hover {
  border-color: #c9949d;
  box-shadow: 0 13px 30px rgba(95, 59, 69, .1);
  transform: translateY(-2px);
}

.kdia-service-card.selected,
.kdia-choice.selected {
  border-color: var(--kdia-rose);
  background: linear-gradient(135deg, #fff, #f9edef);
  box-shadow: 0 15px 34px rgba(117, 70, 83, .13);
  transform: translateY(-2px);
}

.kdia-service-card.selected::after,
.kdia-choice.selected::after {
  border-color: var(--kdia-rose);
  background: var(--kdia-rose);
  color: #fff;
}

.kdia-service-card span,
.kdia-choice span {
  display: block;
  font-size: 16px;
  font-weight: 750;
}

.kdia-service-card small {
  display: block;
  margin-top: 8px;
  color: var(--kdia-muted);
  font-size: 14px;
  line-height: 1.5;
}

.kdia-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Fields */

.kdia-field input,
.kdia-field textarea,
.kdia-contact-grid input {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid #dfd0d3;
  border-radius: 15px;
  outline: none;
  background: #fff;
  box-shadow: 0 5px 16px rgba(80, 49, 58, .035);
  color: var(--kdia-ink);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.kdia-field textarea {
  min-height: 170px;
  resize: vertical;
}

.kdia-field input:focus,
.kdia-field textarea:focus,
.kdia-contact-grid input:focus {
  border-color: var(--kdia-rose);
  box-shadow: 0 0 0 4px rgba(173, 104, 117, .11);
}

.kdia-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kdia-contact-grid label span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}

/* Actions */

.kdia-intake-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(98, 62, 72, .09);
}

.kdia-btn {
  min-height: 48px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.kdia-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.kdia-btn-primary {
  margin-left: auto;
  background: var(--kdia-ink);
  box-shadow: 0 10px 24px rgba(49, 32, 38, .15);
  color: #fff;
}

.kdia-btn-secondary {
  background: var(--kdia-blush);
  color: var(--kdia-ink);
}

.kdia-btn:disabled {
  opacity: .55;
  cursor: wait;
}

.kdia-message {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #eccaca;
  border-radius: 13px;
  background: #fff0f0;
  color: #7b3030;
  font-size: 14px;
}

.kdia-success {
  padding: 58px 10px;
  text-align: center;
}

.kdia-success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kdia-blush), #f0dadd);
  color: var(--kdia-rose-dark);
  font-size: 27px;
  font-weight: 900;
}

.kdia-success p {
  color: var(--kdia-muted);
  font-size: 16px;
}

@media (max-width: 820px) {
  .kdia-launch {
    min-height: 620px;
  }

  .kdia-launch-services {
    right: 28px;
    bottom: 32px;
    width: 270px;
  }
}

@media (max-width: 680px) {
  .kdia-launch {
    min-height: auto;
    padding: 38px 24px 260px;
    border-radius: 24px;
  }

  .kdia-launch::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 225px;
    border-top: 1px solid rgba(111, 72, 82, .08);
    border-left: 0;
  }

  .kdia-launch h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .kdia-launch-copy {
    font-size: 17px;
  }

  .kdia-launch-button {
    width: 100%;
    justify-content: space-between;
  }

  .kdia-launch-services {
    right: 24px;
    bottom: 22px;
    left: 24px;
    width: auto;
  }

  .kdia-launch-services span {
    padding: 10px 14px;
    font-size: 14px;
  }

  .kdia-launch-services span:nth-child(2),
  .kdia-launch-services span:nth-child(3) {
    transform: none;
  }

  .kdia-intake-shell {
    padding: 28px 22px;
    border-radius: 23px;
  }

  .kdia-service-grid,
  .kdia-choice-grid,
  .kdia-contact-grid {
    grid-template-columns: 1fr;
  }

  .kdia-step {
    min-height: 0;
  }

  .kdia-intake-actions {
    position: sticky;
    z-index: 4;
    bottom: 8px;
    margin-right: -8px;
    margin-left: -8px;
    padding: 12px 8px;
    border-top: 0;
    border-radius: 18px;
    background: rgba(255, 250, 248, .92);
    box-shadow: 0 10px 28px rgba(66, 41, 49, .13);
    backdrop-filter: blur(14px);
  }

  .kdia-btn {
    padding: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kdia-intake *,
  .kdia-intake *::before,
  .kdia-intake *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.kdia-intake-shell[hidden],
.kdia-launch[hidden] {
  display: none !important;
}

/* KDIA mobile intake fixes */
@media (max-width: 680px) {
  .kdia-intake {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .kdia-launch {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 40px 18px 230px;
    border-radius: 22px;
  }

  .kdia-launch h2 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .kdia-launch-copy {
    font-size: 1rem;
    line-height: 1.65;
  }

  .kdia-launch-button {
    width: 100%;
    justify-content: space-between;
  }

  .kdia-launch-services {
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
  }

  .kdia-launch-services span,
  .kdia-launch-services span:nth-child(2),
  .kdia-launch-services span:nth-child(3) {
    transform: none;
  }

  .kdia-intake-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 26px 16px 110px;
    border-radius: 22px;
    overflow: hidden;
  }

  .kdia-intake-header {
    width: 100%;
    margin-bottom: 22px;
  }

  .kdia-intake-header h2 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11vw, 3.4rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .kdia-intake-header p,
  .kdia-step-copy p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .kdia-progress {
    width: 100%;
    gap: 10px;
    margin: 22px 0 30px;
  }

  .kdia-progress > span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .kdia-step {
    width: 100%;
    min-height: 0;
  }

  .kdia-step-copy {
    width: 100%;
    margin-bottom: 22px;
  }

  .kdia-step h3,
  .kdia-success h3 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .kdia-service-grid,
  .kdia-choice-grid,
  .kdia-contact-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .kdia-service-card,
  .kdia-choice {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 18px 44px 18px 18px;
  }

  .kdia-service-card span,
  .kdia-choice span,
  .kdia-service-card small {
    overflow-wrap: anywhere;
  }

  .kdia-field,
  .kdia-contact-grid label {
    width: 100%;
    min-width: 0;
  }

  .kdia-field input,
  .kdia-field textarea,
  .kdia-contact-grid input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .kdia-field textarea {
    min-height: 150px;
  }

  .kdia-intake-actions {
    position: fixed;
    z-index: 999;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(84, 53, 62, .12);
    border-radius: 18px;
    background: rgba(255, 250, 248, .96);
    box-shadow: 0 12px 30px rgba(66, 41, 49, .16);
    backdrop-filter: blur(14px);
  }

  .kdia-btn {
    min-width: 0;
    flex: 1;
    padding: 13px 14px;
    white-space: nowrap;
  }

  .kdia-btn-primary {
    margin-left: 0;
  }

  .kdia-success {
    padding: 42px 4px;
  }
}

.kdia-turnstile-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: flex-start;
    min-height: 65px;
}

.kdia-turnstile-wrap iframe {
    max-width: 100%;
}
