:root {
  --g-purple: #005898;
  --g-purple-dark: #004080;
  --g-bg: #f7f7f5;
  --g-text: #003d66;
  --g-muted: #5e7389;

  --g-header-font: TRT, "Segoe UI", sans-serif;
  --g-header-size: 22px;
  --g-question-font: TRT, "Segoe UI", sans-serif;
  --g-question-size: 14px;
  --g-text-font: TRT, "Segoe UI", sans-serif;
  --g-text-size: 15px;
  --form-ink: #005898;
  --form-line: #d7e3ee;
  --form-ok: #005898;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
html, body,
button, input, select, textarea {
  font-family: TRT, "Segoe UI", sans-serif !important;
}
body {
  --g-header-font: TRT, "Segoe UI", sans-serif !important;
  --g-question-font: TRT, "Segoe UI", sans-serif !important;
  --g-text-font: TRT, "Segoe UI", sans-serif !important;
  font-family: TRT, "Segoe UI", sans-serif !important;
  font-size: 15px;
  background: var(--g-bg);
  color: var(--g-text);
  min-height: 100dvh;
  overflow-x: hidden;
}

.wrap { width: min(520px, 100%); margin: 0 auto; }
.form-brand {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 28px 22px 8px;
  background: #fff;
  display: flex;
  justify-content: center;
}
.form-brand a { display: inline-flex; text-decoration: none; }
.form-brand img { height: 56px; width: auto; display: block; }
.sheet { background: #fff; min-height: 100dvh; }

form#public-form {
  background: transparent;
  border: 0;
  padding: 28px 22px 96px;
}

.progress { display: none; }
.form-banner {
  display: block;
  margin: -28px -22px 8px;
  overflow: hidden;
  background: #eef4f9;
}
.form-banner img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.preview-banner {
  margin: 0;
  padding: 10px 22px;
  background: #fff6d8;
  color: #6b4a12;
  font-size: 13px;
}

.title-card,
.q-card,
.text-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 28px;
  margin: 0;
}
.title-card::before { content: none; }
.section-head { margin: 0; }
.section-head .title-card {
  padding: 12px 0 28px;
  text-align: center;
}
.section-head .title-card::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--g-purple);
  border-radius: 99px;
  opacity: 0.45;
}
.section-card { padding: 8px 0 20px; }
.section-card h1 { font-size: 15px; font-weight: 650; }
.form-section { margin: 0; }
.page { display: none; }
.page.is-on { display: block; }

h1 {
  margin: 0 0 10px;
  font-family: TRT, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  color: var(--g-text);
}
.q-card,
.text-card { padding: 0 0 22px; }
.q-card h2,
.text-card h2,
h2 {
  margin: 0 0 10px;
  font-family: TRT, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--g-text);
}
.text-card h2 a { color: inherit; }
.lead {
  color: var(--g-muted);
  line-height: 1.5;
  font-size: 14px;
  margin: 0 0 10px;
}
.title-card .lead {
  margin: 8px 0 0;
  max-width: none;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}
.error { color: #b42318; margin: 0 0 12px; font-size: 13px; }
.title-card .error { margin: 10px 0 0; }
.req { color: #c2410c; padding-left: 3px; }

.q-image { margin: 0 0 16px; }
.q-image img {
  width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  background: #eef4f9;
}
.q-video {
  margin: 0 0 16px;
  overflow: hidden;
  background: #003d66;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  border-radius: 12px;
}
.q-video iframe,
.q-video video { width: 100%; height: 100%; border: 0; display: block; }

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid #c5d6e6;
  border-radius: 14px;
  background: #fff;
}
.field:focus-within { border-color: var(--g-purple); }
.field-ico {
  width: 22px;
  height: 22px;
  color: #8aa3b8;
  flex: 0 0 auto;
  display: block;
}
.field-ico svg { width: 100%; height: 100%; display: block; }
.field-area {
  align-items: flex-start;
  padding: 12px 16px;
  min-height: 108px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: inherit;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path fill='none' stroke='%238aa3b8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M1 1.2 7 6.8 13 1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 28px;
}
textarea {
  min-height: 84px;
  resize: vertical;
  padding: 0;
}
input[type="date"],
input[type="time"] { max-width: 100%; color: var(--g-muted); }
input[type="file"] { border: 0; padding: 0; }
::placeholder { color: #9aadc0; }
input:focus, select:focus, textarea:focus {
  outline: none;
}

.file-drop {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #c5d6e6;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--g-muted);
  cursor: pointer;
  font-size: 14px;
  background: #fff;
}
.file-drop:hover,
.file-drop.on { border-color: var(--g-purple); color: var(--g-purple); }
.file-drop input { width: auto; margin: 0; }

.choice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  min-height: 40px;
  background: transparent;
  cursor: pointer;
}
.choice + .choice { margin: 0; border-top: 0; }
.choice:has(input:checked) { background: transparent; box-shadow: none; }
.choice input { width: auto; accent-color: var(--g-purple); flex: 0 0 auto; }
.choice span { line-height: 1.4; font-size: 15px; }
.other {
  border: 0;
  flex: 1;
  background: transparent;
  padding: 4px 0;
}

.kvkk-block {
  margin: 20px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.kvkk-details {
  margin: 0 0 12px;
}
.kvkk-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--g-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kvkk-summary::-webkit-details-marker { display: none; }
.kvkk-summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}
.kvkk-details[open] .kvkk-summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.kvkk-text {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #f7f9fc;
}
.kvkk-text p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--g-muted, #5a6f85);
}
.kvkk-text p:last-child { margin-bottom: 0; }
.kvkk-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--g-ink, #0a2540);
}
.kvkk-consent input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--g-purple);
  flex: 0 0 auto;
}
.kvkk-consent em {
  font-style: normal;
  color: var(--g-purple);
}
.kvkk-error { margin: 10px 0 0; }

.scale {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.scale label {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--g-muted);
  min-width: 28px;
  padding: 0;
  background: none;
  cursor: pointer;
}
.scale input { accent-color: var(--g-purple); }
.g-svg { width: 16px; height: 16px; display: block; }
.rating .star-ico { color: #c5c5c0; width: 18px; height: 18px; }
.rating label:has(input:checked) .star-ico { color: var(--g-purple); }

.table-wrap { overflow: auto; max-width: 100%; }
table { width: 100%; min-width: 340px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--form-line); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }

.form-bottom {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -22px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--form-line);
}

.steps {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: transparent;
  font-size: 0;
}
.step-label,
.step-plus { display: none; }
.step-ico {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4d4d0;
}
.step.is-done .step-ico,
.step.is-current .step-ico { background: var(--g-purple); }
.step.is-done .step-ico::after,
.step.is-current .step-ico::after { content: none; }

.nav {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  align-items: center;
  background: transparent;
  border: 0;
}
.nav .ghost { margin-right: auto; }
.submit,
.ghost {
  min-height: 44px;
  border-radius: 4px;
  font-family: TRT, "Segoe UI", sans-serif;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  padding: 0 20px;
}
.submit {
  margin: 0 0 0 auto;
  border: 0;
  background: var(--g-purple);
  color: #fff;
}
.submit:hover { background: var(--g-purple-dark); }
.ghost {
  border: 1px solid #c5d6e6;
  background: #fff;
  color: var(--g-purple);
}

.thanks-card,
.wrap > .sheet > .title-card { padding: 72px 24px; text-align: left; }
.thanks-card h1,
.sheet > .title-card h1 { font-size: 24px; max-width: 20ch; }
.thanks-card p,
.sheet > .title-card p { margin: 10px 0 0; color: var(--g-muted); }
.thanks-card a { text-decoration: none; font-weight: 650; color: var(--g-purple); }

.hp { position: absolute; left: -9999px; }
a { color: var(--g-purple); }

@media (max-width: 640px) {
  .wrap, .sheet, .form-brand { width: 100%; }
  .form-brand { padding: 24px 20px 4px; }
  .form-brand img { height: 52px; }
  form#public-form { padding: 16px 16px 108px; }
  .form-banner { margin-left: -16px; margin-right: -16px; }
  .form-bottom { margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .nav { flex-wrap: wrap; }
  .nav .submit, .nav .ghost { min-height: 48px; }
  input, select, textarea, button, .choice { touch-action: manipulation; }
  h1, h2, .lead, .choice span { overflow-wrap: anywhere; }
  .field { min-height: 52px; }
  .choice { align-items: flex-start; min-height: 48px; padding: 12px 0; }
  .choice input { width: 22px; height: 22px; margin-top: 1px; }
  .choice:has(.other) { flex-wrap: wrap; }
  .choice .other { flex: 1 1 100%; min-width: 0; font-size: 16px; }
  .file-drop { flex-wrap: wrap; align-items: center; min-height: 52px; }
  .file-drop span { flex: 1 1 140px; }
  .file-drop input { max-width: 100%; }
  .scale { gap: 6px 4px; justify-content: space-between; }
  .scale > span:empty { display: none; }
  .scale > span { flex: 1 1 100%; }
  .scale label { min-width: 40px; min-height: 48px; align-content: center; }
  .rating label { min-width: 44px; }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; font-size: 15px; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td { display: block; width: auto; }
  .table-wrap tr {
    border: 1.5px solid var(--form-line);
    border-radius: 14px;
    margin: 0 0 12px;
    padding: 12px 14px;
  }
  .table-wrap th { border: 0; padding: 0 0 8px; text-align: left; font-size: 15px; }
  .table-wrap td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    min-height: 48px;
    padding: 6px 0;
    text-align: left;
  }
  .table-wrap td::before { content: attr(data-label); font-weight: 650; }
}
