/**
 * Rammschutz-Shop: Kontaktformular [rs_kontakt].
 *
 * Wird von inc/contact-form.php eingebunden (rsk_enqueue_styles) und
 * unkompiliert ausgeliefert - nicht Teil von bundled/app.min.css.
 *
 * Felder selbst kommen ohne eigene Regeln aus: input[type=text|email|tel]
 * und textarea sind bereits in resources/styles/defaults/_form.scss gesetzt,
 * der Absende-Button in _btn.scss (Selektor "button").
 *
 * Die Zeilen tragen bewusst p.rsk-form__row statt nur .rsk-form__row: Im
 * Kontaktkasten gilt .contact__right__form p { margin-bottom: 0 } mit
 * gleicher Spezifitaet - bei Gleichstand gewinnt das spaeter geladene
 * Stylesheet, und das ist dieses hier.
 *
 * Farben entsprechen resources/styles/defaults/_variables.scss
 * ($yellow #ebbd1f, $light_grey #f5f5f5) und dem Input-Rahmen #A7A7A7
 * aus _form.scss.
 */

/* Bewusst ohne width: Die Breite kommt aus dem Umfeld - .form-flex setzt
   zwei Felder auf je 50 %, .contact__right__form p zieht sie im Kontakt-
   kasten wieder auf 100 %. Eine eigene Breite hier wuerde beides schlagen. */
.rsk-form p.rsk-form__row {
    margin: 0 0 1rem;
}

.rsk-form p.rsk-form__row label {
    display: block;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.rsk-form__required {
    color: #c0392b;
    text-decoration: none;
    border: none;
    cursor: help;
}

/* Zwei Felder nebeneinander (.form-flex aus _form.scss) brauchen den
   Zeilenabstand am Container, sonst kollabiert er zwischen den Zeilen. */
.rsk-form .form-flex {
    margin-bottom: 1rem;
}

.rsk-form .form-flex p.rsk-form__row {
    margin-bottom: 0;
}

/* ---------- Fehlerzustand ---------- */

.rsk-form p.rsk-form__row--error input,
.rsk-form p.rsk-form__row--error textarea {
    border-color: #c0392b;
}

.rsk-form__error {
    display: block;
    margin-top: 0.35rem;
    color: #c0392b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ---------- Datenschutz-Checkbox ---------- */

.rsk-form p.rsk-form__row--checkbox {
    margin-top: 0.5rem;
}

.rsk-form p.rsk-form__row--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.rsk-form p.rsk-form__row--checkbox input[type=checkbox] {
    flex: 0 0 auto;
    margin: 0.2rem 0 0;
    width: 1rem;
    height: 1rem;
    accent-color: #ebbd1f;
}

/* ---------- Produkthinweis (Anfrageformular im Produkt-Tab) ---------- */

.rsk-form p.rsk-form__product {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border-left: 4px solid #ebbd1f;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rsk-form p.rsk-form__product span {
    color: #959595;
    white-space: nowrap;
}

/* ---------- Absenden ---------- */

.rsk-form p.rsk-form__submit {
    margin: 1rem 0 0;
}

/* Honigtopf: fuer Menschen unsichtbar, im Tab-Fluss uebersprungen.
   Bewusst kein display:none - das erkennen einfache Bots. */
.rsk-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Meldungen ---------- */

.rsk-notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.rsk-notice p {
    margin-bottom: 0.5rem;
}

.rsk-notice p:last-child,
.rsk-notice ul {
    margin-bottom: 0;
}

.rsk-notice ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.rsk-notice--error {
    background: #fdecea;
    border-left: 4px solid #c0392b;
}

.rsk-notice--success {
    background: #f5f5f5;
    border-left: 4px solid #ebbd1f;
}
