/*
 * Bootstrap 5.3 overrides for the Medina intake form.
 * Load order:
 *   1. bootstrap.min.css
 *   2. css/style.css
 *   3. css/intake-bootstrap.css
 */

body.intake-page main {
  opacity: 1;
}

.intake-hero {
  min-height: 46vh;
  display: grid;
  align-items: center;
  padding: 128px 24px 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(30,107,56,0.32) 0%, transparent 70%),
    linear-gradient(180deg, var(--forest-deep) 0%, var(--forest-mid) 54%, var(--forest-deep) 100%);
  position: relative;
  overflow: hidden;
}

.intake-hero::after {
  content: "✿";
  position: absolute;
  right: 8vw;
  bottom: -2vh;
  color: rgba(201,160,85,0.08);
  font-size: clamp(8rem, 22vw, 17rem);
  line-height: 1;
  pointer-events: none;
}

.intake-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.intake-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1.05;
  margin-bottom: 22px;
}

.intake-lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(245,237,214,0.74);
  font-size: 1rem;
  line-height: 1.85;
}

.intake-section {
  background: var(--forest-deep);
}

.intake-form-wrap {
  max-width: 1028px;
  padding-top: 88px;
  padding-bottom: 110px;
}

.form-card {
  border: 1px solid rgba(201,160,85,0.22);
  background: rgba(30,107,56,0.12);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  color: var(--text-cream);
}

.form-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--gold-light);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 24px;
}

.form-card-intro,
.form-note {
  color: rgba(245,237,214,0.68);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.form-label,
.choice-label,
.check-label {
  color: var(--gold-pale);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.form-control,
.form-select {
  min-height: 50px;
  border: 1px solid rgba(201,160,85,0.24);
  background-color: rgba(5,20,10,0.38);
  color: var(--gold-pale);
  padding: 14px 16px;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
  box-shadow: none;
  color-scheme: dark;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-control::placeholder {
  color: rgba(245,237,214,0.42);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(201,160,85,0.7);
  background-color: rgba(5,20,10,0.55);
  color: var(--gold-pale);
  box-shadow: 0 0 0 0.2rem rgba(201,160,85,0.12);
}

.form-select {
  --bs-form-select-bg-img: none;
}

.choice,
.check-item,
.consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(201,160,85,0.16);
  background: rgba(5,20,10,0.22);
  color: rgba(245,237,214,0.75);
  font-size: 0.94rem;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.choice {
  min-height: 50px;
  align-items: center;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-left: -28px;
  margin-top: 0.2rem;
  border-color: rgba(232,207,160,0.72);
  background-color: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.choice .form-check-input {
  margin-top: 0;
}

.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

.form-check-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 0.2rem rgba(201,160,85,0.14);
}

.body-map-card {
  border: 1px solid rgba(201,160,85,0.16);
  background: rgba(5,20,10,0.22);
  padding: 20px;
  min-height: 280px;
}

.submit-note {
  max-width: 520px;
  margin: 0;
  color: rgba(245,237,214,0.55);
  font-size: 0.86rem;
  line-height: 1.65;
}

.intake-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 15px 42px;
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.35s, color 0.35s;
  position: relative;
  overflow: hidden;
}

.intake-submit:hover,
.intake-submit:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--forest-deep);
}

@media (max-width: 520px) {
  .intake-hero {
    padding: 112px 18px 56px;
  }

  .intake-form-wrap {
    padding-top: 56px;
    padding-bottom: 78px;
  }

  .form-card {
    padding: 22px 16px;
  }

  .form-label,
  .choice-label,
  .check-label {
    font-size: 0.76rem;
    letter-spacing: 0.055em;
  }

  .choice,
  .check-item,
  .consent-box {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .intake-submit {
    width: 100%;
  }
}

/* Container van één aandoening */
.condition-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 13px 14px;
}

/* Regel met checkbox en tekst */
.condition-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 24px;
}

/* Bootstrap gebruikt normaal een negatieve linkermarge.
   Die schakelen we voor deze onderdelen uit. */
.condition-check .form-check-input {
    position: static;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Houd de term netjes links en op één regel */
.condition-check .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: rgba(245, 237, 214, 0.75);
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
}

/* Tekstveld altijd onder de checkboxregel */
.condition-item .detail-field {
    display: block;
    width: 100%;
    margin-top: 12px;
}

/* Bootstrap moet verborgen velden echt verbergen */
.condition-item .detail-field.d-none {
    display: none;
}

/* Interactieve body-map */
.body-map-editor { display: grid; gap: 16px; }
.body-map-stage-wrap { display: flex; justify-content: center; width: 100%; }
.body-map-stage { position: relative; width: min(100%, 760px); border: 1px solid rgba(201,160,85,0.18); background: rgba(255,255,255,0.94); overflow: hidden; touch-action: none; user-select: none; }
.body-map-image { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.body-map-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.body-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.body-map-button { border: 1px solid rgba(201,160,85,0.6); background: rgba(5,20,10,0.3); color: var(--gold-pale); padding: 10px 14px; font-family: "Jost", sans-serif; font-size: 0.82rem; }
.body-map-button:hover, .body-map-button:focus-visible { background: rgba(201,160,85,0.14); border-color: var(--gold); outline: none; }
.body-map-status { color: rgba(245,237,214,0.62); font-size: 0.86rem; }
