:root {
  --teal: #17b9b1;
  --teal-dark: #0f97a8;
  --teal-soft: #dff7f5;
  --ink: #172b4d;
  --muted: #58708f;
  --line: #e5edf5;
  --bg: #f6fbfa;
  --card: #ffffff;
  --warn: #c56a00;
  --warn-bg: #fff8e9;
  --blue-bg: #edf5ff;
  --shadow: 0 18px 38px rgba(23, 43, 77, 0.13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff 0, var(--bg) 58%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  width: min(900px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.narrow {
  width: min(680px, 100%);
  margin: 0 auto;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 0 28px;
  text-align: center;
}

.eye-mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 30px rgba(15, 151, 168, 0.25);
}

.eye-mark.small {
  width: 58px;
  height: 58px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel {
  padding: 28px;
}

.section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.rubric-head {
  align-items: center;
}

.rubric-title {
  flex: 1;
  min-width: 0;
}

.skip-top {
  min-width: 170px;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.section-head h2,
.panel h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.section-head p,
.panel p {
  margin: 0;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  border-radius: 999px;
  background: #eef3f8;
  color: #4a6482;
  font-size: 0.78rem;
  padding: 5px 10px;
}

.language-search {
  width: 100%;
  border: 1px solid #d6e2ef;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
}

.language-list {
  margin: 18px 0;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.language-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.language-row:last-child {
  border-bottom: 0;
}

.language-row.active,
.language-row:hover {
  background: #eaf9f8;
  color: #0b7772;
}

.language-row span:last-child {
  color: #8498b2;
  font-size: 0.9rem;
}

.notice {
  border: 1px solid #f2d38c;
  background: var(--warn-bg);
  color: #984a00;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.info-box {
  background: #f4f8fc;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.info-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.info-box li {
  margin: 8px 0;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.checks {
  display: grid;
  gap: 18px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: #2a3f5f;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 650;
  font-size: 0.94rem;
}

.req {
  color: #d33f3f;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5dfeb;
  border-radius: 6px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 750;
  text-decoration: none;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.btn.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6e0eb;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-top {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: #38577a;
  font-size: 0.9rem;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #edf3f8;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
}

.questions {
  padding: 26px 28px 0;
}

.question {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  margin-bottom: 34px;
}

.qnum {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef3f8;
  color: #58708f;
  font-weight: 700;
}

.answers {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.answer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.question-actions {
  padding: 22px 28px 28px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}

.results-card {
  border: 1px solid #f0ca69;
  background: #fffefb;
  border-radius: 8px;
  overflow: hidden;
}

.results-title {
  padding: 20px 24px;
  color: var(--warn);
  border-bottom: 1px solid #f0ca69;
  font-size: 1.15rem;
  font-weight: 750;
}

.results-body {
  padding: 24px;
}

.reminder {
  margin-top: 24px;
  border: 1px solid #b9d8ff;
  background: var(--blue-bg);
  color: #0646a6;
  border-radius: 8px;
  padding: 18px;
}

.email-status {
  margin-top: 16px;
  border: 1px solid #b8eadf;
  background: #edfbf7;
  color: #116b5d;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 650;
}

.email-status.failed {
  border-color: #f0b4b4;
  background: #fff1f1;
  color: #9d2323;
}

.service-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.service {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.service strong {
  font-size: 1.05rem;
}

.service small {
  color: var(--muted);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.mini {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.error {
  margin-top: 14px;
  color: #ba2d2d;
}

@media (max-width: 680px) {
  .app {
    width: min(100vw - 20px, 900px);
    padding-top: 12px;
  }

  .panel,
  .section-head,
  .questions,
  .question-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .form-grid,
  .actions {
    grid-template-columns: 1fr;
  }

  .rubric-head {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .skip-top {
    grid-column: 1 / -1;
    width: 100%;
  }

  .brand h1 {
    font-size: 2rem;
  }
}
