/* ==========================================================
   mod_bhgfamily_showcard – styly

   Modul přebírá styling formulářových prvků z globálního
   typography.css / user.css (barvy, pill radius, focus, atd.).
   Vlastní pravidla obsahují jen:
     - wrapper (rámeček karty)
     - nadpis + intro
     - feature layer pro SVG ikony vlevo v inputech
     - varianty layoutu (horizontal, familyinline)
   ========================================================== */

/* ----------------------------------------------------------
   Wrapper (výchozí layout)
   ---------------------------------------------------------- */
.bhgf-mod-showcard {
    background-color: var(--c-paper);
    border-radius: var(--radius-card);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    max-width: 560px;
    margin: 0 auto;
    box-shadow: var(--shadow-1);
    color: var(--c-merlot-300);
}

/* ----------------------------------------------------------
   Nadpis + intro
   ---------------------------------------------------------- */
.bhgf-mod-showcard .bhgf-mod-heading {
    color: var(--c-merlot-400);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: .5rem;
}
.bhgf-mod-showcard .bhgf-mod-intro {
    color: var(--c-merlot-300);
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------
   Inputy – padding + background positioning pro SVG ikony
   (barva/radius/focus přebírá z globálního typography.css)
   ---------------------------------------------------------- */
.bhgf-mod-showcard input[name="first_name"],
.bhgf-mod-showcard input[name="last_name"],
.bhgf-mod-showcard input[type="email"] {
    padding-left: 2.75rem;
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 18px 18px;
}

/* SVG ikony (barva %235A232A = merlot-400) – shodné s mod_bhgfamily_register */
.bhgf-mod-showcard input[name="first_name"],
.bhgf-mod-showcard input[name="last_name"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A232A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/></svg>");
}
.bhgf-mod-showcard input[type="email"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A232A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>");
}

/* ----------------------------------------------------------
   GDPR poznámka (samostatná, ne checkbox)
   ---------------------------------------------------------- */
.bhgf-mod-showcard .bhgf-mod-gdpr-note {
    color: var(--c-merlot-300);
    font-size: .82rem;
    line-height: 1.45;
}

/* ----------------------------------------------------------
   Flash zprávy (alert)
   ---------------------------------------------------------- */
.bhgf-mod-showcard .bhgf-mod-alert {
    border-radius: var(--radius-card, 12px);
    font-size: .9rem;
}

/* ----------------------------------------------------------
   Horizontal layout – plná šířka, nadpis centrovaný
   ---------------------------------------------------------- */
.bhgf-mod-showcard.bhgf-mod-horizontal {
    max-width: 100%;
}
.bhgf-mod-showcard.bhgf-mod-horizontal .bhgf-mod-heading {
    text-align: center;
}
.bhgf-mod-showcard.bhgf-mod-horizontal .bhgf-mod-intro {
    text-align: center;
}

/* ----------------------------------------------------------
   Familyinline – wrapper transparentní bez karty
   (použije uživatel jako wrapperClass v BHG Family sekci)
   ---------------------------------------------------------- */
.bhgf-mod-showcard.familyinline {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    max-width: none;
    margin: 0;
    box-shadow: none;
    color: var(--c-merlot-400);
}

/* ----------------------------------------------------------
   Transparentní pozadí formulářových prvků
   ---------------------------------------------------------- */
.bhgf-mod-showcard .form-control,
.bhgf-mod-showcard .form-select {
    background-color: transparent;
}
