/* Hotel Dvorec guest survey. Brand tokens from hoteldvorec.com (style.css, 2026-10). */
:root {
  --red: #b80017;
  --red-dark: #96000f;
  --gold: #c19b76;
  --gold-soft: #efe5da;
  --ink: #242424;
  --ink-soft: #5c5c5c;
  --muted: #8a8a8a;
  --line: #e4ded6;
  --paper: #f7f4ef;
  --white: #ffffff;
  --err: #a1000f;
  --sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
  --script: 'Lora', Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Top bar and brand bar, as on hoteldvorec.com */
.topbar { background: #1f1f1f; color: #fff; font-size: 13px; }
.topbar__inner {
  max-width: 1120px; margin: 0 auto; padding: 7px 16px;
  display: flex; gap: 24px; justify-content: flex-start;
}
.topbar__contact { text-decoration: none; opacity: .92; }
.topbar__contact:hover { opacity: 1; }

.brandbar { background: var(--white); border-bottom: 1px solid var(--line); }
.brandbar__inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brandbar__logo img { display: block; width: 112px; height: auto; }

.lang { display: flex; gap: 2px; }
.lang button {
  font: 500 13px/1 var(--sans); letter-spacing: .08em;
  background: none; border: 0; color: var(--ink-soft);
  padding: 10px 8px; min-width: 40px; min-height: 40px; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--red); border-bottom-color: var(--red); }

/* Hero */
.hero { position: relative; height: 300px; overflow: hidden; background: #3a2a22; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, .10) 0%, rgba(20, 12, 8, .35) 45%, rgba(20, 12, 8, .72) 100%);
}
.hero__text {
  position: relative; height: 100%;
  max-width: 760px; margin: 0 auto; padding: 0 16px 64px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.hero__kicker { margin: 0 0 4px; font: italic 400 19px/1.3 var(--script); }
.hero__title { margin: 0; font: 600 40px/1.1 var(--sans); letter-spacing: -.01em; }
.hero__title em { font: italic 600 1em/1 var(--display); }

/* Card */
.wrap { max-width: 760px; margin: -40px auto 0; padding: 0 16px; position: relative; }
.card {
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(60, 40, 20, .08);
  padding: 36px 44px 44px;
}

.intro { margin-bottom: 8px; color: var(--ink-soft); }
.intro p { margin: 0 0 6px; }
.intro__greet { color: var(--ink); font-weight: 500; }

/* Questions */
.q { border: 0; margin: 0; padding: 30px 0 4px; min-width: 0; }
.q + .q, .intro + .q { border-top: 1px solid var(--line); margin-top: 26px; }
.q__title {
  display: flex; align-items: baseline; gap: 12px;
  padding: 0; margin: 0 0 4px;
  font: 600 18px/1.35 var(--sans); color: var(--ink);
}
.q__title--plain { display: block; }
/* A floated legend leaves the fieldset border alone, so it reads like the other question titles. */
legend.q__title { float: left; width: 100%; }
legend.q__title + * { clear: both; }
.q__num {
  flex: none;
  font: italic 600 26px/1 var(--display);
  color: var(--gold);
  min-width: 18px;
}
.q__hint { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
label.q__title { margin-bottom: 14px; cursor: pointer; }

/* Rating scale */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.scale label {
  display: flex; align-items: center; justify-content: center;
  height: 44px; cursor: pointer; user-select: none;
  font: 500 16px/1 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  transition: background .12s, border-color .12s, color .12s;
}
.scale label:hover { border-color: var(--gold); background: #fcf9f5; }
.scale input:checked + label { background: var(--red); border-color: var(--red); color: #fff; }
.scale input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.scale--big label { height: 56px; font-size: 20px; }
.scale__ends {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 12px; color: var(--muted); letter-spacing: .02em;
}

.cats { display: grid; gap: 4px; }
.cat {
  display: grid; grid-template-columns: 1fr 290px; align-items: center; gap: 16px;
  padding: 8px 0; min-width: 0;
}
.cat + .cat { border-top: 1px dashed var(--line); }
.cat__label { font-weight: 500; font-size: 15px; }
.cat .scale label { height: 40px; font-size: 15px; }

/* Text inputs */
textarea, input[type="email"] {
  width: 100%; display: block;
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: #fdfcfa; border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px;
  transition: border-color .12s, background .12s;
}
textarea { resize: vertical; min-height: 96px; }
textarea:focus, input[type="email"]:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px var(--gold-soft); }

/* Subscriptions */
.q--subs .q__title { font-size: 16px; }
.subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 18px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; min-height: 36px; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0;
  border: 1px solid #bdb5ab; background: #fff; display: grid; place-content: center; cursor: pointer;
}
.check input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0);
  transition: transform .1s;
}
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.field { display: block; }
.field__label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.err { margin: 10px 0 0; font-size: 14px; color: var(--err); font-weight: 500; }
.err--center { text-align: center; }
.q.has-error .scale label { border-color: #e2a3a9; }
input.has-error { border-color: var(--err); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons, square and letter-spaced like BOOK NOW on the hotel site */
.actions { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 240px; min-height: 52px; padding: 0 32px;
  font: 600 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--red); border: 1px solid var(--red); border-radius: 0;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--ghost { background: transparent; color: var(--red); min-width: 0; }
.btn--ghost:hover { background: var(--red); color: #fff; }

/* Thank-you state */
.thanks { text-align: center; padding: 24px 0 8px; outline: none; }
.thanks__mark { width: 128px; height: auto; margin: 0 auto 8px; display: block; }
.thanks__title { margin: 8px 0 12px; font: italic 600 44px/1.1 var(--display); color: var(--ink); }
.thanks p { margin: 0 0 6px; color: var(--ink-soft); }
.thanks__sign { font: italic 400 18px/1.4 var(--script); color: var(--ink) !important; margin: 14px 0 30px !important; }

/* Footer */
.foot { text-align: center; padding: 36px 16px 44px; font-size: 13px; color: var(--red); }
.foot p { margin: 0 0 4px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot strong { font-weight: 600; }

@media (max-width: 720px) {
  .topbar__contact--mail { display: none; }
  .brandbar__logo img { width: 92px; }
  .hero { height: 240px; }
  .hero__text { padding-bottom: 54px; }
  .hero__kicker { font-size: 17px; }
  .hero__title { font-size: 31px; }
  .wrap { margin-top: -32px; }
  .card { padding: 26px 20px 32px; }
  .q { padding-top: 24px; }
  .q + .q, .intro + .q { margin-top: 20px; }
  .q__title { font-size: 17px; }
  .cat { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
  .subs { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
