:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102a43;
  background: #edf7f4;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(30, 166, 137, .2), transparent 36%),
    radial-gradient(circle at bottom right, rgba(11, 107, 87, .14), transparent 32%),
    #edf7f4;
}

button, input { font: inherit; }

.page-shell {
  width: min(100%, 1080px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 42, 67, .08);
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(16, 42, 67, .14);
}

.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  color: #fff;
  background: linear-gradient(150deg, #075747, #0b6b57 58%, #14866f);
}

.eyebrow {
  margin: 0 0 12px;
  color: #0b6b57;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.intro-panel .eyebrow { color: #a9e9d9; }
h1, h2, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }

.intro-copy {
  max-width: 40ch;
  margin: 22px 0 34px;
  color: #d7f3ec;
  line-height: 1.65;
}

.benefits {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e8faf5;
  font-size: .9rem;
}

.benefits li { display: flex; align-items: center; gap: 11px; }
.benefits li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: #075747;
  background: #a9e9d9;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}

.form-card { padding: 58px 64px; }
.form-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 34px; }
.form-heading .eyebrow { margin-bottom: 4px; }

.step {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: #0b6b57;
  background: #e3f6f0;
  border-radius: 14px;
  font-weight: 850;
}

.field { margin: 0 0 24px; padding: 0; border: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: 8px;
  color: #20394e;
  font-size: .88rem;
  font-weight: 750;
}

.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  color: #102a43;
  background: #f8fbfa;
  border: 1px solid #ceded9;
  border-radius: 12px;
  outline: none;
  transition: 150ms ease;
}

.field input:focus {
  background: #fff;
  border-color: #0b6b57;
  box-shadow: 0 0 0 4px rgba(11, 107, 87, .11);
}

.field-hint, .field-error { margin: 7px 0 0; font-size: .78rem; line-height: 1.45; }
.field-hint { color: #718390; }
.field-error { color: #b42318; font-weight: 650; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.product-option { position: relative; margin: 0 !important; cursor: pointer; }
.product-option input { position: absolute; opacity: 0; pointer-events: none; }
.product-option span {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 10px 13px;
  color: #40586a;
  background: #f8fbfa;
  border: 1px solid #d7e3df;
  border-radius: 12px;
  font-size: .82rem;
  transition: 150ms ease;
}

.product-option input:checked + span {
  color: #075747;
  background: #e3f6f0;
  border-color: #4eaa92;
  box-shadow: inset 0 0 0 1px #4eaa92;
}

.product-option input:focus-visible + span { outline: 3px solid rgba(11, 107, 87, .22); outline-offset: 2px; }

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

.primary-button { width: 100%; color: #fff; background: #0b6b57; border: 1px solid #0b6b57; }
.primary-button:hover { background: #075747; }
.secondary-button { color: #0b6b57; background: #fff; border: 1px solid #bed3cc; }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-link:focus-visible { outline: 3px solid rgba(11, 107, 87, .25); outline-offset: 3px; }
.privacy-note { margin: 13px 0 0; color: #7d8c96; font-size: .74rem; line-height: 1.5; text-align: center; }

.center-card {
  width: min(100%, 480px);
  margin: min(12vh, 100px) auto;
  padding: 46px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(16, 42, 67, .08);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(16, 42, 67, .13);
}

.center-card h1 { margin-bottom: 14px; font-size: 2.4rem; }
.description { margin: 0; color: #617585; line-height: 1.6; }
.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  color: #fff;
  background: #0b6b57;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
}

.success-card .secondary-button { margin-top: 28px; }
.login-card .description { margin-bottom: 28px; }
.login-logo, .success-logo {
  display: block;
  width: min(100%, 245px);
  height: auto;
  margin: 0 auto 28px;
}
.success-logo {
  width: min(100%, 210px);
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #075747;
  border-radius: 12px;
}
.align-left { text-align: left; }
.text-link { display: inline-block; margin-top: 20px; color: #0b6b57; font-size: .86rem; font-weight: 700; }

.admin-body { background: #f2f7f5; }
.admin-shell { width: min(100%, 1320px); margin: 0 auto; }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-title-block { display: flex; align-items: center; gap: 24px; }
.admin-logo { width: 190px; height: auto; }
.admin-header h1 { font-size: clamp(2rem, 5vw, 3rem); }
.admin-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
.admin-main-column { min-width: 0; display: grid; align-content: start; gap: 18px; }
.qr-card, .records-card {
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(16, 42, 67, .07);
}

.qr-card { align-self: start; padding: 22px; text-align: center; }
.qr-card img { display: block; width: 100%; margin: 4px 0 12px; }
.qr-card p:last-child { margin: 0; color: #718390; font-size: .78rem; line-height: 1.5; }
.records-card { min-width: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 17px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #e7eeeb; }
th { color: #647887; background: #f8fbfa; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td a { color: #0b6b57; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { padding: 5px 8px; color: #075747; background: #e3f6f0; border-radius: 999px; font-size: .72rem; white-space: nowrap; }
.empty-state { padding: 70px 30px; text-align: center; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { margin: 0; color: #718390; }

.qr-page-body {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(169, 233, 217, .26), transparent 42%),
    #062f29;
}

.qr-display {
  position: relative;
  width: min(100%, 1120px);
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
}

.qr-display::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: -170px;
  bottom: -180px;
  border: 64px solid rgba(169, 233, 217, .12);
  border-radius: 50%;
}

.qr-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px;
  color: #fff;
  background: linear-gradient(145deg, #064a3d, #0b6b57 68%, #0e7d66);
}

.brand-row {
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  margin-bottom: 62px;
  background: transparent;
}
.brand-logo { display: block; width: 230px; height: auto; }
.qr-message .eyebrow { color: #a9e9d9; }
.qr-message h1 { max-width: 10ch; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.qr-lead { max-width: 44ch; margin: 24px 0 38px; color: #d9f2ec; font-size: 1.03rem; line-height: 1.65; }

.steps { display: grid; gap: 13px; }
.steps div { display: flex; align-items: center; gap: 13px; color: #e5f8f3; font-size: .88rem; }
.steps strong {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  color: #075747;
  background: #a9e9d9;
  border-radius: 9px;
  font-size: .78rem;
}

.qr-code-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px;
  text-align: center;
}

.scan-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #526979;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.scan-label span { width: 8px; height: 8px; background: #1c9b7e; border-radius: 50%; box-shadow: 0 0 0 5px #e3f6f0; }

.qr-code-frame {
  position: relative;
  width: min(100%, 355px);
  padding: 22px;
  background: #fff;
}

.qr-code-frame img { display: block; width: 100%; height: auto; }
.corner { position: absolute; width: 42px; height: 42px; border-color: #19a184; border-style: solid; }
.corner-top-left { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 13px 0 0; }
.corner-top-right { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 13px 0 0; }
.corner-bottom-left { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 13px; }
.corner-bottom-right { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-radius: 0 0 13px; }

.survey-body { background: #f0f7f4; }
.survey-shell { width: min(100%, 1000px); margin: 0 auto; }
.survey-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 60px;
  color: #fff;
  background: linear-gradient(145deg, #064a3d, #0b6b57 68%, #0e7d66);
  border-radius: 28px 28px 0 0;
}
.language-switcher {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(7, 87, 71, .14);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .09);
}
.language-switcher a {
  padding: 6px 9px;
  color: #526979;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 850;
  text-decoration: none;
}
.language-switcher a.active { color: #fff; background: #0b6b57; }
.language-switcher a:focus-visible { outline: 3px solid rgba(169, 233, 217, .7); outline-offset: 2px; }
.center-card { position: relative; }
.light-language-switcher { top: 16px; right: 16px; }
.survey-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: -150px;
  border: 50px solid rgba(169, 233, 217, .12);
  border-radius: 50%;
}
.survey-hero .brand-row { margin-bottom: 38px; }
.survey-hero .eyebrow { color: #a9e9d9; }
.survey-hero-copy { position: relative; z-index: 1; max-width: 740px; }
.survey-hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.survey-hero-copy > p:last-child { max-width: 58ch; margin: 20px 0 0; color: #d9f2ec; line-height: 1.65; }
.prize-strip, .qr-prizes { display: flex; flex-wrap: wrap; gap: 12px; }
.prize-strip { position: relative; z-index: 1; margin-top: 30px; }
.prize-strip span, .qr-prizes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #eafff9;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: .82rem;
}
.prize-strip strong, .qr-prizes strong { color: #a9e9d9; font-size: 1.05rem; }

.survey-form {
  padding: 52px 60px 64px;
  background: #fff;
  border: 1px solid #dce8e4;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 24px 70px rgba(16, 42, 67, .1);
}
.form-section + .form-section { margin-top: 58px; padding-top: 52px; border-top: 1px solid #dfe9e6; }
.section-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.section-heading > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: #0b6b57;
  background: #e3f6f0;
  border-radius: 14px;
  font-weight: 850;
}
.section-heading .eyebrow { margin-bottom: 3px; }
.question-card { margin: 0 0 20px; padding: 24px; border: 1px solid #dce7e3; border-radius: 18px; }
.question-card legend {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  color: #20394e;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.45;
}
.question-card legend span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: #0b6b57;
  background: #e3f6f0;
  border-radius: 8px;
  font-size: .76rem;
}
.radio-list { display: grid; gap: 8px; margin-top: 18px; }
.choice-option { position: relative; cursor: pointer; }
.choice-option input { position: absolute; opacity: 0; pointer-events: none; }
.choice-option span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px 10px 43px;
  color: #40586a;
  background: #f8fbfa;
  border: 1px solid #d7e3df;
  border-radius: 11px;
  font-size: .86rem;
  transition: 150ms ease;
}
.choice-option span::before {
  content: "";
  position: absolute;
  left: 15px;
  width: 16px;
  height: 16px;
  border: 2px solid #a9bbb5;
  border-radius: 50%;
}
.choice-option input:checked + span { color: #075747; background: #e3f6f0; border-color: #4eaa92; }
.choice-option input:checked + span::before { border: 5px solid #0b6b57; background: #fff; }
.question-card .choice-option span::before { border-radius: 5px; }
.question-card .choice-option input:checked + span::after { content: "✓"; margin-left: auto; color: #0b6b57; font-weight: 900; }
.choice-option input:focus-visible + span { outline: 3px solid rgba(11, 107, 87, .22); outline-offset: 2px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-wide { grid-column: 1 / -1; }
.field label em { color: #b42318; font-style: normal; }
.solution-field { margin: 0 0 26px; padding: 0; border: 0; }
.solution-field legend { margin-bottom: 12px; color: #20394e; font-size: .88rem; font-weight: 750; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.solution-option span { justify-content: center; padding: 12px; }
.solution-option span::before { display: none; }
.solution-option input:checked + span::after { content: "✓"; margin-left: 8px; font-weight: 900; }
.solution-field > .field-hint { margin-top: 10px; }
.submit-survey { min-height: 54px; }

.submission-list { display: grid; gap: 1px; background: #e0eae7; }
.submission-card { padding: 22px; background: #fff; }
.submission-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.submission-card header div { display: grid; gap: 4px; }
.submission-card header strong { font-size: 1rem; }
.submission-card header span, .submission-card time { color: #718390; font-size: .78rem; }
.submission-card header .submission-actions { display: flex; align-items: center; gap: 12px; }
.delete-submission-button {
  padding: 7px 11px;
  color: #b42318;
  background: #fff;
  border: 1px solid #f0b8b2;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}
.delete-submission-button:hover { color: #fff; background: #b42318; border-color: #b42318; }
.delete-submission-button:focus-visible { outline: 3px solid rgba(180, 35, 24, .22); outline-offset: 2px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 15px 0; font-size: .82rem; }
.contact-line a { color: #0b6b57; }
.contact-line b { padding: 3px 8px; color: #075747; background: #e3f6f0; border-radius: 999px; font-size: .74rem; }
.answers-list { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid #e7eeeb; }
.answers-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.answers-list dt { color: #718390; font-size: .73rem; font-weight: 750; }
.answers-list dd { margin: 0; color: #334e60; font-size: .8rem; }

.draw-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px;
  color: #fff;
  background: linear-gradient(120deg, #075747, #0b6b57 62%, #139077);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(7, 87, 71, .2);
}
.draw-card .eyebrow { margin-bottom: 6px; color: #a9e9d9; }
.draw-card h2 { margin-bottom: 8px; }
.draw-card p { margin: 0; color: #dcf5ef; font-size: .84rem; line-height: 1.55; }
.draw-card a { color: #fff; }
.draw-card small { display: block; margin-top: 9px; color: #addfd3; }
.draw-button {
  min-width: 170px;
  min-height: 50px;
  padding: 12px 18px;
  color: #075747;
  background: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.draw-button:hover { background: #edfff9; }
.draw-button:focus-visible { outline: 3px solid #a9e9d9; outline-offset: 3px; }
.draw-button:disabled { color: #82938f; background: #dce8e4; cursor: not-allowed; box-shadow: none; }

.qr-prizes { margin: 0 0 26px; }
.qr-message h1 { max-width: 15ch; font-size: clamp(2.1rem, 4vw, 3.45rem); }

@media (max-width: 850px) {
  body { padding: 18px; }
  .page-shell { min-height: auto; grid-template-columns: 1fr; }
  .intro-panel, .form-card { padding: 42px; }
  .admin-grid { grid-template-columns: 1fr; }
  .qr-card { width: min(100%, 250px); }
  .qr-display { grid-template-columns: 1fr; }
  .qr-message { padding: 42px; }
  .brand-row { margin-bottom: 34px; }
  .qr-message h1 { max-width: 13ch; }
  .steps { display: none; }
  .qr-code-panel { padding: 40px; }
  .survey-hero, .survey-form { padding: 42px; }
  .draw-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  body { padding: 10px; }
  .page-shell { border-radius: 20px; }
  .intro-panel, .form-card { padding: 30px 22px; }
  .intro-panel h1 { font-size: 2.35rem; }
  .product-grid { grid-template-columns: 1fr; }
  .center-card { margin: 24px auto; padding: 34px 24px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-title-block { align-items: flex-start; flex-direction: column; gap: 16px; }
  .admin-logo { width: 150px; }
  .admin-body { padding: 20px 12px; }
  .qr-page-body { padding: 10px; }
  .qr-display { border-radius: 20px; }
  .qr-message, .qr-code-panel { padding: 30px 24px; }
  .qr-message h1 { font-size: 2.35rem; }
  .qr-lead { margin-bottom: 0; }
  .qr-code-frame { width: min(100%, 300px); }
  .survey-body { padding: 10px; }
  .survey-hero { padding: 30px 24px; border-radius: 20px 20px 0 0; }
  .survey-form { padding: 30px 20px 40px; border-radius: 0 0 20px 20px; }
  .survey-hero-copy h1 { font-size: 2.25rem; }
  .contact-grid, .solution-grid { grid-template-columns: 1fr; }
  .question-card { padding: 20px 16px; }
  .answers-list div { grid-template-columns: 1fr; gap: 3px; }
  .submission-card header { flex-direction: column; gap: 6px; }
  .submission-card header .submission-actions { width: 100%; justify-content: space-between; }
  .draw-card { padding: 22px; }
  .draw-card form, .draw-button { width: 100%; }
}

@media print {
  @page { size: A4; margin: 0; }
  .qr-page-body { padding: 0; background: #fff; }
  .qr-display { width: 210mm; min-height: 297mm; border-radius: 0; box-shadow: none; }
}
