/* ==========================================================================
   Moderni formular (registrace umelce a uprava profilu)
   Vsechna pravidla jsou omezena na .reg-form - zbytek webu se nemeni.
   ========================================================================== */

.reg-form {
    max-width: 920px;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    container-type: inline-size;
}

.reg-form h1 {
    margin: 0 0 14px 0;
    padding: 0;
    border: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #222;
}

.reg-form .rf-info {
    margin: 0 0 16px 0;
    padding: 10px 14px;
    border-left: 4px solid #e5007d;
    border-radius: 6px;
    background: #fff4fa;
    color: #444;
}

.reg-form .rf-info a { color: #e5007d; }

.reg-form .rf-info-error {
    border-left-color: #d32f2f;
    background: #fdecec;
    color: #8a1c1c;
}

/* formular nema mit ruzove pozadi z puvodniho vzhledu */
#central .reg-form form.rf,
.reg-form form.rf {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* ---- karty (sekce) -------------------------------------------------------- */
.reg-form .rf-card {
    margin: 0 0 18px 0;
    padding: 18px 20px 20px 20px;
    border: 1px solid #f0d3e3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(229, 0, 125, 0.07);
}

.reg-form .rf-card h2 {
    margin: 0 0 16px 0;
    padding: 0 0 8px 0;
    border: 0;
    border-bottom: 1px solid #fadceb;
    background: none;
    font-size: 17px;
    line-height: 1.3;
    color: #e5007d;
}

/* ---- mrizka poli ---------------------------------------------------------- */
.reg-form .rf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 18px;
}

@container (min-width: 600px) {
    .reg-form .rf-grid { grid-template-columns: 1fr 1fr; }
    .reg-form .rf-grid .rf-wide { grid-column: 1 / -1; }
}

.reg-form .rf-field { min-width: 0; }

.reg-form .rf-field > label,
.reg-form .rf-label {
    display: block;
    margin: 0 0 5px 0;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.reg-form .rf-star {
    margin-left: 3px;
    color: #e5007d;
    font-weight: 700;
}

/* ---- ovladaci prvky ------------------------------------------------------- */
.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="tel"],
.reg-form input[type="url"],
.reg-form input[type="password"],
.reg-form input[type="date"],
.reg-form select,
.reg-form textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #d6c4cf;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 15px;
}

.reg-form textarea { resize: vertical; }

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
    outline: none;
    border-color: #e5007d;
    box-shadow: 0 0 0 3px rgba(229, 0, 125, 0.15);
}

.reg-form .rf-stack > * + * { margin-top: 8px; }

.reg-form .rf-pair {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 8px;
}

.reg-form .rf-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.reg-form .rf-triple label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.reg-form .rf-triple input { margin-top: 3px; }

/* ---- stitky (pozice, show) ------------------------------------------------ */
.reg-form .rf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.reg-form .rf-chip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.reg-form .rf-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.reg-form .rf-chip span {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #d6c4cf;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    line-height: 1.25;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.reg-form .rf-chip:hover span { border-color: #e5007d; }

.reg-form .rf-chip input:checked + span {
    border-color: #e5007d;
    background: #e5007d;
    color: #fff;
}

.reg-form .rf-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(229, 0, 125, 0.3);
}

/* ---- napoveda, chyby ------------------------------------------------------ */
.reg-form .rf-hint {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

.reg-form .rf-group .rf-hint { margin: -2px 0 4px 0; }

.reg-form .rf-error {
    margin-top: 5px;
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
}

.reg-form .rf-has-error input[type="text"],
.reg-form .rf-has-error input[type="email"],
.reg-form .rf-has-error input[type="tel"],
.reg-form .rf-has-error input[type="password"],
.reg-form .rf-has-error input[type="date"],
.reg-form .rf-has-error select,
.reg-form .rf-has-error textarea {
    border-color: #d32f2f;
    background: #fff8f8;
}

.reg-form .rf-group.rf-has-error .rf-chip span { border-color: #e57373; }

.reg-form .rf-card.rf-has-error { border-color: #d32f2f; }

/* ---- zaskrtavaci policka a rozbalovaci sekce ------------------------------ */
.reg-form .rf-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.reg-form .rf-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    border: 0;
    accent-color: #e5007d;
}

.reg-form .rf-more { margin-top: 16px; }

.reg-form .rf-more summary {
    cursor: pointer;
    color: #e5007d;
    font-weight: 600;
}

.reg-form .rf-more .rf-grid { margin-top: 12px; }

.reg-form .rf-password { display: flex; gap: 8px; }

.reg-form .rf-toggle {
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid #d6c4cf;
    border-radius: 8px;
    background: #fff;
    color: #e5007d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.reg-form .rf-toggle:hover { border-color: #e5007d; }

.reg-form .rf-consent { background: #fff4fa; }

.reg-form .rf-consent a { color: #e5007d; }

/* ---- odeslani ------------------------------------------------------------- */
.reg-form .rf-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 4px 0 24px 0;
}

.reg-form .rf-submit {
    padding: 14px 36px;
    border: 0;
    border-radius: 8px;
    background: #e5007d;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.reg-form .rf-submit:hover { background: #c4006b; }

.reg-form .rf-cancel { color: #e5007d; }

@media print { .reg-form .rf-toggle { display: none; } }

/* ---- rozcestnik registrace ------------------------------------------------ */
.reg-form .rf-choice { display: grid; gap: 18px; }

.reg-form .rf-choice-card ul,
.reg-form .rf-choice-card ol { margin: 6px 0 12px 0; padding-left: 22px; }

.reg-form .rf-choice-card li { margin: 0 0 4px 0; }

.reg-form .rf-choice-card p { margin: 0 0 10px 0; }

.reg-form .rf-cta {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    background: #e5007d;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.reg-form .rf-cta:hover { background: #c4006b; }

.reg-form .rf-choice-card p,
.reg-form .rf-choice-card li {
    padding: 0;
    text-align: left;
    line-height: 1.5;
}

/* ---- seznamy s tlacitky Pridat / Odebrat ---------------------------------- */
.reg-form .rf-multi-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

.reg-form .rf-multi-row[hidden] { display: none; }

.reg-form .rf-multi-control { flex: 1 1 auto; min-width: 0; }

.reg-form .rf-remove {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid #d6c4cf;
    border-radius: 8px;
    background: #fff;
    color: #888;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.reg-form .rf-remove:hover { border-color: #d32f2f; color: #d32f2f; }

.reg-form .rf-add {
    padding: 6px 0;
    border: 0;
    background: none;
    color: #e5007d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.reg-form .rf-add[hidden] { display: none; }
.reg-form .rf-add:hover { text-decoration: underline; }

/* ---- overeni DIC ve VIES -------------------------------------------------- */
.reg-form .rf-vat-payer { margin: 0 0 4px 0; }

.reg-form .rf-vies-row { display: flex; gap: 8px; }

.reg-form .rf-vies-row input { flex: 1 1 auto; }

.reg-form .rf-vies-btn {
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid #e5007d;
    border-radius: 8px;
    background: #fff;
    color: #e5007d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.reg-form .rf-vies-btn:hover { background: #fff4fa; }
.reg-form .rf-vies-btn[hidden] { display: none; }

.reg-form .rf-vies-result { margin-top: 6px; font-size: 13px; font-weight: 600; }
.reg-form .rf-vies-ok { color: #2e7d32; }
.reg-form .rf-vies-bad { color: #c62828; }
.reg-form .rf-vies-warn { color: #8a6d00; }
.reg-form .rf-vies-wait { color: #666; }

/* ---- formular faktury (klub: za obdobi / jednorazova) ------------------------------ */
.reg-form.inv-form { max-width: 100%; }

.reg-form .inv-vat {
    margin: 12px 0 0 0;
    padding: 10px 14px;
    border: 1px solid #d6c4cf;
    border-left-width: 5px;
    border-radius: 10px;
    background: #faf6f8;
    font-size: 13px;
}

.reg-form .inv-vat[hidden] { display: none; }
.reg-form .inv-vat-title { margin: 0 0 4px 0; color: #666; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.reg-form .inv-vat p { margin: 0 0 4px 0 !important; padding: 0 !important; text-align: left; line-height: 1.4; }
.reg-form .inv-vat-sub { color: #666; }
.reg-form .inv-vat-ok { border-color: #8cc9a0; background: #eef8f1; }
.reg-form .inv-vat-ok p:first-child { color: #1b7f3b; font-weight: 700; }
.reg-form .inv-vat-bad { border-color: #e29a9a; background: #fdf0f0; }
.reg-form .inv-vat-bad p:first-child { color: #c62828; font-weight: 700; }
.reg-form .inv-vat-warn { border-color: #e0c36a; background: #fff8e5; }
.reg-form .inv-vat-wait { color: #666; }
.reg-form .inv-vat-advice { margin-top: 6px !important; padding: 6px 10px !important; border-radius: 8px; background: #fff3d6; color: #7a5200; font-weight: 600; }
.reg-form .inv-vat-advice[hidden] { display: none; }

.reg-form .inv-chips { display: flex; gap: 6px; margin-top: 6px; }
.reg-form .inv-chips button {
    padding: 3px 10px;
    border: 1px solid #d6c4cf;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.reg-form .inv-chips button:hover { border-color: #e5007d; color: #e5007d; }

.reg-form .inv-cur, .reg-form .inv-conv { color: #888; font-weight: 600; }

.reg-form .inv-summary {
    display: grid;
    gap: 6px;
    margin: 16px 0 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #faf6f8;
}
.reg-form .inv-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.reg-form .inv-summary dt { margin: 0; color: #555; }
.reg-form .inv-summary dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.reg-form .inv-summary .inv-strong dt, .reg-form .inv-summary .inv-strong dd { font-weight: 700; color: #222; }

.reg-form .inv-table-wrap { margin: 10px 0 0 0; overflow-x: auto; }
.reg-form .inv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.reg-form .inv-table th { padding: 6px 5px; border-bottom: 2px solid #ecd3e1; color: #666; font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .03em; }
.reg-form .inv-table td { padding: 7px 5px; border-bottom: 1px solid #f1e3ec; }
.reg-form .inv-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg-form .inv-table .inv-empty { color: #777; font-style: italic; text-align: center; }

.reg-form .inv-warn { color: #b45309; font-weight: 600; }

.reg-form .inv-provider > summary { cursor: pointer; list-style: none; }
.reg-form .inv-provider > summary::-webkit-details-marker { display: none; }
.reg-form .inv-provider .inv-edit { margin-left: 8px; color: #e5007d; font-size: 12px; font-weight: 600; }
.reg-form .inv-provider[open] > summary { margin-bottom: 14px; }

/* ---- messengery a socialni site ---------------------------------------------------- */
.reg-form .rf-msg-row { display: flex; gap: 8px; }
.reg-form .rf-msg-row select { flex: 0 0 150px; width: 150px; }
.reg-form .rf-msg-row input { flex: 1 1 auto; min-width: 0; }

@media (max-width: 480px) {
    .reg-form .rf-msg-row { flex-direction: column; }
    .reg-form .rf-msg-row select { flex: 1 1 auto; width: 100%; }
}

/* ---- obecne: nadpisy h3 v kartach a radkove formulare ------------------------------------ */
.reg-form .rf-card h3 { margin: 18px 0 6px 0; color: #333; font-size: 15px; }
.reg-form .rf-card h3:first-of-type { margin-top: 8px; }
.reg-form .rf-card ul { margin: 6px 0 12px 0; padding-left: 22px; }
.reg-form .rf-card li { margin: 0 0 6px 0; }
.reg-form .rf-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 18px 0; }
.reg-form .rf-inline-form label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reg-form .rf-inline-form input[type="text"] { min-width: 220px; }

.reg-form .rf-card li input[type="text"] { width: 100%; max-width: 320px; margin-top: 4px; }

/* ---- notifikace: sekundarni tlacitka a volby ------------------------------------------ */
.reg-form .rf-btn {
    padding: 9px 16px;
    border: 1px solid #e5007d;
    border-radius: 8px;
    background: #fff;
    color: #e5007d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.reg-form .rf-btn:hover { background: #fff3f9; }
.reg-form .rf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reg-form .rf-notify-form .rf-check { margin: 0 0 6px 0; padding: 2px 0 !important; background: transparent !important; border: 0 !important; }
.reg-form .rf-ok { color: #1b7f3b; font-weight: 600; }
.reg-form .notify-page img[alt="QR"] { border: 1px solid #ecd3e1; padding: 6px; border-radius: 8px; background: #fff; }
