/*
 * Anfrage-Formular (Formular-Editor) - Design Kinder- & Gletscherhotel Hintertuxerhof
 * Ausgabe: anwendungen/anfrage.php (WebFormRenderer), Klassen cms-form__*
 */
.hth-anfrage {
    --hth-gold: #c7a900;
    --hth-gold-dark: #a58d00;
    --hth-red: #9a2227;
    --hth-ink: #2c2a29;
    --hth-muted: #6f6a62;
    --hth-line: #e6dfce;
    --hth-soft: #fbf9f3;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(22px, 4.5vw, 54px);
    background: #fff;
    color: var(--hth-ink);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(60, 45, 10, .10), 0 2px 6px rgba(60, 45, 10, .05);
    box-sizing: border-box;
}
.hth-anfrage *, .hth-anfrage *::before, .hth-anfrage *::after { box-sizing: border-box; }
.hth-anfrage .cms-form-wrap { max-width: none; }

/* Abschnitte */
.hth-anfrage .cms-form__group { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.hth-anfrage .cms-form__group-legend {
    display: flex; align-items: center; gap: 14px; width: 100%;
    margin: 0; padding: 0 0 20px; border: 0;
    font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--hth-red);
}
.hth-anfrage .cms-form__group-legend::before { content: ""; flex: 0 0 38px; height: 4px; border-radius: 4px; background: var(--hth-gold); }
.hth-anfrage .cms-form__group-legend::after { content: ""; flex: 1; height: 1px; background: var(--hth-line); }

/* Raster: zwei Spalten, am Handy untereinander */
.hth-anfrage .cms-form--two-col .cms-form__col-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.hth-anfrage .cms-form--two-col .cms-form__col-full { grid-column: 1 / -1; }
.hth-anfrage .cms-form__col:empty { display: none; }
@media (max-width: 680px) {
    .hth-anfrage .cms-form--two-col .cms-form__col-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Felder */
.hth-anfrage .cms-form__field { margin: 0 0 20px; }
.hth-anfrage .cms-form__label { display: block; margin: 0 0 7px; font-size: .88rem; font-weight: 500; letter-spacing: .01em; color: var(--hth-muted); }
.hth-anfrage .cms-form__required { margin-left: 2px; color: var(--hth-red); }
.hth-anfrage .cms-form__input,
.hth-anfrage .cms-form__select,
.hth-anfrage .cms-form__textarea {
    display: block; width: 100%; min-height: 54px; margin: 0;
    padding: 14px 16px; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--hth-ink);
    background: var(--hth-soft); border: 1.5px solid var(--hth-line); border-radius: 14px;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
    -webkit-appearance: none; appearance: none;
}
.hth-anfrage .cms-form__input::placeholder,
.hth-anfrage .cms-form__textarea::placeholder { color: #aaa49a; opacity: 1; }
.hth-anfrage .cms-form__input:hover,
.hth-anfrage .cms-form__select:hover,
.hth-anfrage .cms-form__textarea:hover { border-color: #d5ccb2; }
.hth-anfrage .cms-form__input:focus,
.hth-anfrage .cms-form__select:focus,
.hth-anfrage .cms-form__textarea:focus {
    outline: 0; background: #fff; border-color: var(--hth-gold); box-shadow: 0 0 0 4px rgba(199, 169, 0, .18);
}
.hth-anfrage .cms-form__textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.hth-anfrage .cms-form__select {
    padding-right: 46px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%239a2227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center;
}
.hth-anfrage .cms-form__input[type="date"] { min-height: 54px; cursor: pointer; }
.hth-anfrage .cms-form__input--error { border-color: #c4352e; background: #fff8f7; }
.hth-anfrage .cms-form__field-error { display: block; margin-top: 6px; font-size: .82rem; color: #b3261e; }

/* Einwilligung */
.hth-anfrage .cms-form__field--checkbox { margin: 4px 0 6px; }
.hth-anfrage .cms-form__checkbox-label { position: relative; display: block; padding-left: 38px; font-size: 1rem; line-height: 1.5; color: var(--hth-ink); cursor: pointer; }
.hth-anfrage .cms-form__checkbox-label input { position: absolute; left: 0; top: 0; width: 25px; height: 25px; margin: 0; accent-color: var(--hth-gold); cursor: pointer; }
.hth-anfrage .cms-form__checkbox-label a { color: var(--hth-red); text-decoration: underline; text-underline-offset: 3px; }
.hth-anfrage .hth-info { margin: 0 0 28px 38px; font-size: .82rem; line-height: 1.65; color: var(--hth-muted); }
.hth-anfrage .hth-info a { color: var(--hth-red); }
.hth-anfrage .cms-form__group:has(.cms-form__field--checkbox) { margin-bottom: 4px; }
.hth-anfrage .cms-form__group:has(.cms-form__field--checkbox) .cms-form__group-legend { display: none; }

/* weitere Zimmer / Familien (nur mit JavaScript ausgeblendet, damit es ohne JS vollstaendig bleibt) */
.hth-anfrage.hth-js .cms-form__group:has(.hth-fam-extra),
.hth-anfrage.hth-js .cms-form__group:has(.hth-pers-extra) { display: none; }
.hth-anfrage.hth-js .cms-form__group.is-open { display: block; animation: hthFadeIn .3s ease; }
.hth-anfrage .hth-fam-add {
    display: inline-flex; align-items: center; gap: 10px; margin: -6px 0 34px; padding: 11px 20px;
    font: inherit; font-size: .92rem; font-weight: 500; color: var(--hth-red);
    background: transparent; border: 1.5px dashed var(--hth-gold); border-radius: 999px; cursor: pointer;
    transition: background-color .18s, border-color .18s;
}
.hth-anfrage .hth-fam-add:hover { background: rgba(199, 169, 0, .10); border-style: solid; }
.hth-anfrage .hth-fam-add[hidden] { display: none; }
@keyframes hthFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Absenden */
.hth-anfrage .cms-form__submit-row { margin-top: 12px; text-align: center; }
.hth-anfrage .cms-form__submit {
    min-width: 260px; padding: 17px 46px; border: 0; border-radius: 999px;
    background: var(--hth-gold); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    cursor: pointer; box-shadow: 0 10px 24px rgba(199, 169, 0, .35);
    transition: background-color .18s, transform .18s, box-shadow .18s;
}
.hth-anfrage .cms-form__submit:hover { background: var(--hth-gold-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(165, 141, 0, .38); }
.hth-anfrage .cms-form__submit:focus-visible { outline: 3px solid rgba(154, 34, 39, .35); outline-offset: 3px; }
.hth-anfrage .cms-form__submit:disabled { cursor: progress; transform: none; }

/* Fehlermeldung oben im Formular */
.hth-anfrage .cms-form__error-box {
    margin: 0 0 24px; padding: 14px 18px; font-size: .95rem; color: #8f1d17;
    background: #fdf1f0; border: 1px solid #f3c9c5; border-left: 5px solid #c4352e; border-radius: 12px;
}
.hth-anfrage .cms-form__error-box p { margin: 3px 0; }

/* Danke-Seite */
.hth-anfrage .cms-form__success { padding: 40px 10px 14px; text-align: center; font-size: 1.15rem; line-height: 1.75; white-space: pre-line; }
.hth-anfrage .cms-form__success::before {
    content: "\2713"; display: flex; align-items: center; justify-content: center;
    width: 86px; height: 86px; margin: 0 auto 24px; border-radius: 50%;
    font-size: 2.6rem; font-weight: 700; color: var(--hth-gold-dark); background: rgba(199, 169, 0, .15);
}

/* Honigtopf (Spamschutz) unsichtbar */
.hth-anfrage .cms-form__honeypot { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Auswahl (Radio) als Karten-Knoepfe */
.hth-anfrage .cms-form__field--radio fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hth-anfrage .cms-form__field--radio legend.cms-form__label { padding: 0; margin-bottom: 10px; }
.hth-anfrage .cms-form__radio-label {
    position: relative; display: inline-block; margin: 0 10px 10px 0; padding: 12px 22px 12px 48px;
    font-size: 1rem; line-height: 1.4; color: var(--hth-ink); cursor: pointer;
    background: var(--hth-soft); border: 1.5px solid var(--hth-line); border-radius: 999px;
    transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.hth-anfrage .cms-form__radio-label:hover { border-color: #d5ccb2; }
.hth-anfrage .cms-form__radio-label input { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; accent-color: var(--hth-gold); cursor: pointer; }
.hth-anfrage .cms-form__radio-label:has(input:checked) { background: rgba(199, 169, 0, .12); border-color: var(--hth-gold); box-shadow: 0 0 0 3px rgba(199, 169, 0, .14); }
.hth-anfrage .cms-form__radio-label:has(input:focus-visible) { outline: 3px solid rgba(154, 34, 39, .35); outline-offset: 2px; }

/* weiteres Zimmer wieder entfernen */
.hth-anfrage .hth-fam-remove {
    display: inline-flex; align-items: center; margin: 2px 0 6px; padding: 8px 4px; font: inherit; font-size: .88rem; color: var(--hth-red);
    background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; transition: border-color .18s;
}
.hth-anfrage .hth-fam-remove:hover { border-bottom-color: var(--hth-red); }
.hth-anfrage .cms-form__group:not(.is-open) .hth-fam-remove { display: none; }

/* Die Seiten-CSS blendet Ankreuzfelder/Auswahlkreise aus (alte Formulare zeichneten eigene) - hier muessen die echten sichtbar sein */
.hth-anfrage input[type="checkbox"],
.hth-anfrage input[type="radio"] {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    -webkit-appearance: auto; appearance: auto; width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0;
    background: none; border: 0; box-shadow: none; accent-color: var(--hth-gold);
}
.hth-anfrage .cms-form__checkbox-label input[type="checkbox"] { position: absolute; left: 0; top: 0; }
.hth-anfrage .cms-form__radio-label input[type="radio"] { position: absolute; left: 18px; top: 50%; margin-top: -10px; width: 20px; height: 20px; }
.hth-anfrage .cms-form__checkbox-label::before, .hth-anfrage .cms-form__checkbox-label::after,
.hth-anfrage .cms-form__radio-label::before, .hth-anfrage .cms-form__radio-label::after { content: none !important; display: none !important; }

/* Hinweistext vor einer Gruppe (z. B. Kleinkinderausstattung) */
.hth-anfrage .hth-hinweis { margin: 22px 0 -4px; font-size: .9rem; line-height: 1.6; color: var(--hth-muted); }
