/* Mamahotel reception card: form, thumb chips, the check-out stamp, the calculator crossroads, footer (incl. the credit) and the legal page layout.
   Portability contract: every selector starts with .mh- (or is an attribute selector on .mh- classes) and every colour
   comes from tokens.css. Reduced motion is a scoped rule on .mh-stamp, never a universal selector. */

/* ---- the reception card (the form section) ---- */
.mh-contact {
  width: calc(100% - 2 * var(--mh-space-4));
  margin: var(--mh-space-8) auto 0;
  padding: var(--mh-space-6);
  border: 1px solid var(--mh-surface-line);
  border-radius: var(--mh-radius-lg);
  background: var(--mh-surface);
  box-shadow: var(--mh-shadow-lg);
}

.mh-contact .mh-h2 {
  font-size: 1.6rem;
}

.mh-contact__lead {
  margin: 0 0 var(--mh-space-4);
}

/* D-10: the note that replaces the form while it sits under the quiz result */
.mh-contact [data-mh-lead-moved] {
  margin-bottom: var(--mh-space-4);
}

.mh-form {
  display: grid;
  gap: var(--mh-space-6);
}

/* ---- fields ---- */
.mh-field {
  display: grid;
  gap: var(--mh-space-2);
}

.mh-field label:not(.mh-consent__label),
.mh-legend {
  font-weight: 600;
}

.mh-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100%;
  min-height: 48px;
  padding: var(--mh-space-3) var(--mh-space-4);
  border: 1px solid var(--mh-border-strong);
  border-radius: var(--mh-radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mh-text);
  font-family: var(--mh-font-body);
  font-size: 16px;                       /* 16 px or more: iOS Safari does not zoom on focus */
}

.mh-field input:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-field input[aria-invalid="true"] {
  border-color: var(--mh-danger);
}

.mh-field__error {
  margin: 0;
  color: var(--mh-danger);
  font-size: 0.9375rem;
  font-weight: 600;
}

.mh-field__error:empty {
  display: none;
}

/* ---- thumb chips: native radio / checkbox kept focusable (never display:none), the label is the big pill ---- */
.mh-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mh-space-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mh-legend {
  width: 100%;
  margin-bottom: var(--mh-space-1);
  padding: 0;
}

.mh-fieldset > .mh-field__error {
  width: 100%;
}

.mh-chip {
  position: relative;
  display: inline-flex;
  min-height: 48px;
}

.mh-chip__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.mh-chip__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--mh-border-strong);
  border-radius: var(--mh-radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mh-text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mh-chip__label:hover {
  border-color: var(--mh-accent);
}

.mh-chip__input:checked + .mh-chip__label {
  border-color: var(--mh-accent);
  background: var(--mh-accent);
  color: var(--mh-accent-ink);
  font-weight: 600;
}

/* the checked chip paints --mh-accent, where the WhatsApp green is 1.17:1, so the word takes the accent ink. Hover, focus
   and aria-invalid change only border or outline, so the unchecked chip keeps the green on its 5 % white veil (>= 7.3:1).
   The WhatsApp chip is the default checked one: at load the word shows in the accent ink and turns green once another channel is picked. */
.mh-chip__input:checked + .mh-chip__label .mh-wa-word {
  color: inherit;
}

.mh-chip__input:focus-visible + .mh-chip__label {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-chip__input[aria-invalid="true"] + .mh-chip__label {
  border-color: var(--mh-danger);
}

/* ---- consent: the whole row is the tap target ---- */
.mh-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: var(--mh-space-3);
}

.mh-consent input {
  width: 24px;
  height: 24px;
  margin: 12px 0 0;
  accent-color: var(--mh-accent);
}

.mh-consent input:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-consent input[aria-invalid="true"] {
  outline: 2px solid var(--mh-danger);
  outline-offset: 2px;
}

.mh-consent__label {
  min-height: 48px;
  padding: var(--mh-space-3) 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}

.mh-consent .mh-field__error,
.mh-consent__link {
  grid-column: 2;
}

/* the privacy-policy link as the yellow source chip (story.css .mh-source__link[href]), at the right edge under the consent text.
   Like .mh-footer__pill, the element itself is the 48 px target and the pill is only a ::before inside it */
.mh-consent__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: var(--mh-space-1);
  min-height: var(--mh-tap);
  padding: 0.5rem 0.75rem;
  color: var(--mh-gold);
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color 150ms ease;
}

.mh-consent__link::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  border: 1px solid currentColor;
  border-radius: var(--mh-radius-full);
  pointer-events: none;
  transition: box-shadow 150ms ease;
}

.mh-consent__link::after {
  content: "\2197" / "";
  flex: none;
}

.mh-consent__link:hover,
.mh-consent__link:focus-visible {
  color: var(--mh-brass-light);
}

.mh-consent__link:hover::before,
.mh-consent__link:focus-visible::before {
  box-shadow: var(--mh-glow-soft);
}

.mh-consent__link:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

/* ---- submit and status ---- */
.mh-form .mh-btn {
  width: 100%;
}

.mh-form .mh-btn--primary {
  box-shadow: var(--mh-glow-soft);
}

.mh-status {
  margin: 0;
  min-height: 1.5em;
  color: var(--mh-text-muted);
}

.mh-status[data-kind="error"] {
  color: var(--mh-danger);
}

/* ---- the check-out moment (D-19): thank-you panel with a rubber stamp ---- */
.mh-thanks {
  display: grid;
  justify-items: center;
  gap: var(--mh-space-4);
  padding: var(--mh-space-6) var(--mh-space-4);
  border: 1px dashed var(--mh-border-strong);
  border-radius: var(--mh-radius-lg);
  background: var(--mh-bg);
  text-align: center;
}

.mh-thanks p {
  margin: 0;
  font-size: 1.125rem;
}

.mh-thanks:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-thanks .mh-thanks__wa {
  width: 100%;
  margin-top: var(--mh-space-2);
}

.mh-stamp {
  display: inline-block;
  padding: var(--mh-space-2) var(--mh-space-4);
  border: 3px solid var(--mh-accent);
  border-radius: var(--mh-radius-sm);
  color: var(--mh-accent);
  font-family: var(--mh-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: var(--mh-glow-soft);
  box-shadow: var(--mh-glow-soft), inset var(--mh-glow-soft);
  transform: rotate(-8deg);
  animation: mh-stamp-in 450ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 1 both;
}

@keyframes mh-stamp-in {
  from { opacity: 0; transform: rotate(-8deg) scale(1.6); }
  to { opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* ---- calculator crossroads "Vyber si další level" (quick 261016-wto): two whole-card links between main and footer ---- */
.mh-crossroads {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--mh-space-8) var(--mh-space-4) 0;
}

.mh-crossroads__title {
  margin-bottom: var(--mh-space-4);
}

.mh-crossroads__list {
  display: grid;
  gap: var(--mh-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 520px) {
  .mh-crossroads__list {
    grid-template-columns: 1fr 1fr;
  }
}

.mh-crossroads__item {
  display: flex;
  min-width: 0;
}

.mh-crossroads__card {
  display: flex;
  align-items: flex-start;
  gap: var(--mh-space-3);
  flex: 1;
  min-width: 0;
  min-height: var(--mh-tap);
  padding: var(--mh-space-4);
  border: 1px solid var(--mh-border-strong);
  border-radius: var(--mh-radius-md);
  background: var(--mh-surface);
  color: var(--mh-text);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.mh-crossroads__icon {
  flex: none;
  color: var(--mh-accent);
  filter: drop-shadow(0 0 4px var(--mh-accent));
}

.mh-crossroads__text {
  display: block;
  min-width: 0;
}

.mh-crossroads__name {
  display: block;
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}

.mh-crossroads__line {
  display: block;
  color: var(--mh-accent);
  font-weight: 600;
}

.mh-crossroads__note {
  display: block;
  margin-top: var(--mh-space-1);
  color: var(--mh-text-muted);
  font-size: 0.875rem;
}

/* "Jsi tady" tag on the card of the calculator the visitor is already on */
.mh-crossroads__here {
  display: block;
  width: fit-content;
  margin-bottom: var(--mh-space-1);
  padding: 2px var(--mh-space-2);
  border-radius: var(--mh-radius-full);
  background: var(--mh-accent);
  color: var(--mh-accent-ink);
  font-family: var(--mh-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .mh-crossroads__card:hover {
    border-color: var(--mh-accent);
    box-shadow: var(--mh-glow-soft);
    transform: translateY(-2px);
  }

  .mh-crossroads__card[aria-current="page"]:hover {
    transform: none;
    box-shadow: none;
  }
}

.mh-crossroads__card:focus-visible {
  outline: 3px solid var(--mh-accent-hover);
  outline-offset: 2px;
  border-color: var(--mh-accent);
  box-shadow: var(--mh-glow-soft);
}

/* the current card is "dimmed" by a dashed border and no background, never by opacity: every text keeps >= 7.3:1 on --mh-bg */
.mh-crossroads__card[aria-current="page"] {
  border-style: dashed;
  background: transparent;
}

/* ---- footer ---- */
.mh-footer {
  display: grid;
  justify-items: start;
  gap: var(--mh-space-1);
  max-width: 560px;
  margin: 0 auto;
  padding: var(--mh-space-8) var(--mh-space-4) var(--mh-space-12);
  color: var(--mh-text-muted);
  font-size: 0.875rem;
}

/* the closing neon line of the page, lit like the MAMAHOTEL sign (hero.css .mh-sign__word); only the credit follows it */
.mh-footer__signature {
  justify-self: stretch;
  margin: var(--mh-space-12) 0 var(--mh-space-4);
  color: var(--mh-accent);
  font-family: var(--mh-font-display);
  font-size: clamp(1.6rem, 7.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: var(--mh-glow-accent);
  text-wrap: balance;
  animation: mh-flicker 4s infinite;
}

/* identity block: label column + value column, values wrap so a 360 px phone never scrolls sideways */
.mh-footer__identity {
  display: grid;
  gap: var(--mh-space-2);
  width: 100%;
  margin: 0 0 var(--mh-space-4);
}

.mh-footer__identity > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
  gap: var(--mh-space-3);
}

.mh-footer__identity dt {
  color: var(--mh-text-muted);
}

.mh-footer__identity dd {
  margin: 0;
  color: var(--mh-text);
  overflow-wrap: anywhere;
}

.mh-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--mh-tap);
  color: var(--mh-accent);
  overflow-wrap: anywhere;
}

/* the footer link to the calculator the visitor is already on (it jumps to the heading, no reload) */
.mh-footer__link[aria-current="page"] {
  color: var(--mh-text);
  text-decoration: none;
}

/* credit line, the last thing in the footer: small, muted, centred and set well below the slogan, still a 48 px target (quick 261016-wto, client 2026-10-22) */
.mh-footer__credit {
  justify-self: center;
  margin: var(--mh-space-12) 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.mh-footer__credit-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--mh-tap);
  color: var(--mh-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mh-footer__credit-link:hover {
  color: var(--mh-text);
}

.mh-footer__credit-link:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

/* footer button that looks like the footer links (re-opens the cookie settings) */
.mh-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mh-accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.mh-link-btn:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

/* ---- footer legal group (D-12): the links to the legal pages, the register and the cookie settings sit together on the right,
   small and yellow, drawn as an outlined pill. The pill is only a ::before inside the 48 px element, so the touch target never shrinks ---- */
.mh-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: stretch;
  gap: 0 var(--mh-space-2);
  width: 100%;
  margin-top: var(--mh-space-2);
}

.mh-footer__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--mh-tap);
  padding: 6px 14px;
  border: 0;
  background: none;
  color: var(--mh-gold);
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mh-footer__pill::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  border: 1px solid currentColor;
  border-radius: var(--mh-radius-full);
  pointer-events: none;
}

.mh-footer__pill:hover {
  color: var(--mh-brass-light);
}

.mh-footer__pill:focus-visible {
  color: var(--mh-brass-light);
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-footer__pill[aria-current="page"] {
  color: var(--mh-text);
}

/* ---- reception desk (D-15): the e-mail and phone links are brass hotel-desk buttons under a small "Recepce" tag ---- */
.mh-desk {
  display: grid;
  gap: var(--mh-space-3);
  width: 100%;
  margin: var(--mh-space-2) 0 var(--mh-space-4);
}

.mh-desk__tag {
  margin: 0;
  color: var(--mh-brass-light);
  font-family: var(--mh-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mh-desk__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mh-space-3);
  min-height: 56px;
  padding: 0 var(--mh-space-6);
  border-radius: var(--mh-radius-md);
  background: linear-gradient(135deg, var(--mh-brass-light), var(--mh-brass-dark));
  box-shadow: var(--mh-shadow-knob);
  color: var(--mh-label-ink);
  font-family: var(--mh-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.mh-desk__btn:hover {
  box-shadow: var(--mh-shadow-knob), 0 0 18px var(--mh-brass-dark);
}

.mh-desk__btn:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-desk__icon {
  flex: none;
  width: 24px;
  height: 24px;
}

/* investment interest note (D-11): a plain line above the form, deliberately not a chip */
.mh-interest {
  margin: 0;
  padding: var(--mh-space-3) var(--mh-space-4);
  border-left: 3px solid var(--mh-accent);
  color: var(--mh-text);
}

.mh-interest[hidden] {
  display: none;
}

/* ---- legal pages (privacy policy): readable measure, brand headings ---- */
.mh-legal {
  max-width: 42rem;
  line-height: 1.7;
}

.mh-legal__title,
.mh-legal h2,
.mh-legal h3 {
  font-family: var(--mh-font-display);
  line-height: 1.2;
}

.mh-legal__title {
  margin: 0 0 var(--mh-space-6);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 700;
}

.mh-legal p {
  margin: 0 0 var(--mh-space-4);
}

.mh-legal__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--mh-tap);
  color: var(--mh-accent);
}

/* ---- reduced motion: the stamp just appears, the crossroads card does not animate ---- */
@media (prefers-reduced-motion: reduce) {
  .mh-stamp {
    animation: none;
  }

  .mh-crossroads__card {
    transition: none;
  }

  .mh-crossroads__card:hover {
    transform: none;
  }

  .mh-footer__pill,
  .mh-desk__btn,
  .mh-consent__link,
  .mh-consent__link::before {
    transition: none;
  }

  .mh-footer__signature {
    animation: none;
  }
}
