:root {
  --bg-page: #efefef;
  --bg-app: #f4f4f4;
  --blue-dark: #00173d;
  --blue-mid: #0c2c67;
  --blue-soft: #e8eef8;
  --gold: #7a6500;
  --gold-soft: #b49623;
  --footer-bg: #00173d;
  --footer-border: rgba(255, 255, 255, 0.06);
  --muted: #575757;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-app);
  color: #111;
  font-family: "Cormorant Garamond", serif;
  min-height: 100dvh;
  padding:
    max(10px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
}

.app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--bg-app);
  min-height: 100dvh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6, 19, 45, 0.12);
}

.top-brand-image {
  padding: 14px 18px 8px;
  background: var(--bg-app);
}

.hero {
  position: relative;
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.hero-slide {
  margin: 0;
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.hero-slide img {
  width: 100%;
  height: clamp(230px, 36vh, 300px);
  object-fit: cover;
  display: block;
}

.hero-video {
  width: 100%;
  height: clamp(230px, 36vh, 300px);
  object-fit: cover;
  display: block;
  background: #000;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
  transition: opacity 160ms ease, transform 160ms ease;
}

.carousel-dot.is-active {
  opacity: 1;
  transform: scale(1.1);
  background: #fff;
}

.survey-area {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 42px;
  background:
    radial-gradient(circle at 95% 7%, rgba(180, 150, 35, 0.16) 0, rgba(180, 150, 35, 0) 38%),
    radial-gradient(circle at 8% 55%, rgba(12, 44, 103, 0.07) 0, rgba(12, 44, 103, 0) 36%),
    var(--bg-app);
}

.survey-area::before,
.survey-area::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.survey-area::before {
  width: 110px;
  height: 110px;
  right: -52px;
  top: -36px;
  background: linear-gradient(140deg, rgba(180, 150, 35, 0.14), rgba(180, 150, 35, 0.02));
}

.survey-area::after {
  width: 86px;
  height: 86px;
  left: -40px;
  bottom: 44px;
  background: linear-gradient(145deg, rgba(12, 44, 103, 0.13), rgba(12, 44, 103, 0.01));
}

.intro-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 24px;
  margin-left: -8px;
  margin-right: -8px;
}

.intro-hospital-image {
  width: min(220px, 62vw);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(9, 26, 58, 0.16));
}

.intro-copy h1 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(33px, 8.4vw, 42px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.intro-copy p {
  margin: 0 auto;
  max-width: 100%;
  color: #2d2d2d;
  font-size: clamp(13px, 3.3vw, 15px);
  line-height: 1.5;
  font-weight: 600;
}

.areas-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.area-card {
  border: 1px solid #d9e1ef;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 5px 14px rgba(8, 24, 53, 0.08);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.area-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(8, 24, 53, 0.12);
}

.area-card-top {
  height: 66px;
  background: linear-gradient(160deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
  border-bottom-left-radius: 62% 18px;
  border-bottom-right-radius: 62% 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-card.is-selected .area-card-top {
  background: linear-gradient(160deg, #7a6500 0%, #0c2c67 100%);
}

.area-card-top .area-card-icon {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.area-card p {
  margin: 10px auto 10px;
  width: auto;
  max-width: 100%;
  padding: 0 10px;
  min-height: 30px;
  color: #b49623;
  font-size: clamp(13px, 3.2vw, 15px);
  letter-spacing: 0.45px;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.start-button {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #fff;
  padding: 13px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 5.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 14px rgba(92, 74, 0, 0.28);
  cursor: pointer;
}

.start-button .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.site-footer {
  background: var(--footer-bg);
  color: #fff;
}

.site-footer-contact {
  text-align: center;
  padding: 24px 18px 16px;
  border-bottom: 1px solid var(--footer-border);
}

.phone-row {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(21px, 5.8vw, 28px);
  font-weight: 700;
}

.phone-row .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.help-copy {
  margin: 0;
  color: #b6b6b6;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.24;
}

.site-footer-brand {
  text-align: center;
  padding: 16px 16px 18px;
}

.site-footer-brand p {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 5.5vw, 24px);
  font-weight: 700;
}

.site-footer-brand small {
  display: block;
  color: #8e8e8e;
  font-size: clamp(11px, 3vw, 13px);
}

.questionnaire-page {
  background: #eef2f8;
}

.questionnaire-shell {
  background: #eef2f8;
  padding-bottom: 24px;
}

.questionnaire-header {
  padding: 0 0 14px;
}

.questionnaire-header-bar {
  height: 10px;
  background: linear-gradient(90deg, #6e8fbd 0%, #5878aa 100%);
}

.questionnaire-header-copy {
  padding: 14px 12px 0;
}

.questionnaire-kicker {
  margin: 0 0 6px;
  color: #5b6a7f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.questionnaire-header-copy h1 {
  margin: 0 0 4px;
  color: #293445;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.questionnaire-header-copy > p:last-child {
  margin: 0;
  color: #7c8796;
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.questionnaire-form {
  display: grid;
  gap: 10px;
  padding: 0 10px;
}

.questionnaire-card {
  border: 1px solid #dfe6ef;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.questionnaire-card h2 {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #6f8fb9;
  background: #fbfcfe;
  color: #445064;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.rating-option {
  position: relative;
  min-height: 56px;
  border: 1px solid #e5eaf1;
  border-radius: 2px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  font-family: Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

.rating-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.rating-face {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 20px;
  line-height: 1;
  display: block;
}

.rating-label {
  color: #2e3440;
  font-size: clamp(3px, 1.35vw, 8px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.rating-option-danger .rating-face {
  color: #e22721;
}

.rating-option-warning .rating-face {
  color: #ff5552;
}

.rating-option-neutral .rating-face {
  color: #ecb325;
}

.rating-option-happy .rating-face {
  color: #2cdb3d;
}

.rating-option-excellent .rating-face {
  color: #276e2d;
}

.rating-option input:checked + .rating-face,
.rating-option input:checked + .rating-face + .rating-label {
  transform: none;
}

.rating-option:has(input:checked) {
  border-color: #6f8fb9;
  box-shadow: inset 0 0 0 1px #6f8fb9;
  background: #f9fbfe;
}

.questionnaire-card-form {
  padding: 10px;
}

.questionnaire-field {
  display: block;
}

.questionnaire-field + .questionnaire-field {
  margin-top: 10px;
}

.questionnaire-field span {
  display: block;
  margin: 0 0 6px;
  color: #445064;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.questionnaire-field textarea,
.questionnaire-field input {
  width: 100%;
  border: 1px solid #e0e5ec;
  border-radius: 3px;
  background: #fff;
  color: #283444;
  font-family: Arial, sans-serif;
  font-size: 10px;
  padding: 9px 10px;
}

.questionnaire-field textarea {
  resize: vertical;
  min-height: 70px;
}

.questionnaire-field textarea::placeholder,
.questionnaire-field input::placeholder {
  color: #acb4bf;
}

.questionnaire-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.questionnaire-submit {
  border: 0;
  border-radius: 3px;
  background: #123e77;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 14px;
}

.questionnaire-back {
  border-radius: 3px;
  border: 1px solid #123e77;
  color: #123e77;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 14px;
  text-decoration: none;
  line-height: 1;
}

.questionnaire-privacy {
  margin: 24px 0 4px;
  color: #484f5b;
  font-family: Arial, sans-serif;
  font-size: 7px;
  line-height: 1.4;
  text-align: center;
}

.survey-feedback-modal[hidden] {
  display: none;
}

.survey-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.survey-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(223, 231, 242, 0.82);
  backdrop-filter: blur(1px);
}

.survey-feedback-card {
  position: relative;
  width: min(320px, calc(100vw - 36px));
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 18px 36px rgba(30, 49, 84, 0.12);
  padding: 22px 20px 18px;
  text-align: center;
}

.survey-feedback-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid #d9efc8;
  color: #95cf72;
  display: grid;
  place-items: center;
}

.survey-feedback-icon .material-symbols-outlined {
  font-size: 26px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.survey-feedback-card h2 {
  margin: 0;
  color: #2f3035;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.survey-feedback-card p {
  margin: 8px 0 18px;
  color: #8a909d;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.survey-feedback-button {
  min-width: 42px;
  border: 0;
  border-radius: 4px;
  background: #123e77;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (min-width: 391px) {
  .survey-area {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(42px, env(safe-area-inset-bottom));
  }

  .site-footer-contact,
  .site-footer-brand {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

@media (max-width: 360px) {
  body {
    padding: 8px;
  }

  .survey-area {
    padding: 24px 16px 36px;
  }

  .areas-grid {
    gap: 12px;
  }

  .start-button {
    padding: 14px 16px;
  }

  .area-card-top {
    height: 62px;
  }

  .area-card p {
    font-size: 12px;
  }
}
