form {
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

fieldset {
  border: none;
  margin-bottom: 1.5rem;
}

legend {
  font-size: 1.25rem;
  font-weight: bold;
  color: #502379;
  margin-bottom: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #333;
}

.input-field-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.text-field-container {
  margin: 0 1rem;
}

@media (min-width: 756px) {
  .input-field-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Pole přes celou šířku mřížky (např. banner předvybrané kampaně). */
.input-field-full {
  grid-column: 1 / -1;
}

/* Label pro neformulářové prvky (radio skupina). */
.field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #333;
}

/* Segmentové přepínače (typ dárce, frekvence) — vodorovně, na úzku zalomí. */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
/* Svislá varianta (Známe Vás? — dlouhé popisky). */
.radio-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.radio-col .radio-option { flex: 0 0 auto; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
  background: #fff;
}
.radio-option:hover { border-color: #502379; }
.radio-option input {
  width: auto;
  margin: 0;
  accent-color: #502379;
}
.radio-option:has(input:checked) {
  border-color: #502379;
  background: #f3eef9;
  font-weight: 600;
}

/* Banner předvybrané kampaně ve formuláři. */
.campaign-pill {
  background: #f3eef9;
  border-left: 4px solid #502379;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.campaign-pill a { margin-left: 0.6rem; font-size: 0.85em; color: #502379; }


input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #502379;
}

button {
  background-color: #502379;
  color: white;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #3e1c60;
}

.button-container {
  text-align: center;
  padding-bottom: 1em;
}

.captcha-container {
    text-align: center;

}

.captcha-content {
    display: inline-block;
}

img.captcha {
    display: block;
    margin: 20px auto;
}


.consent-description {
  font-size: 0.9em;
  color: #444;
  left: 30px;
  position: relative;
}

input:invalid,
textarea:invalid {
  border-color: #e63e18;
}

.form-errors {
  background: #ffe6e6;
  border-left: 4px solid #e63e18;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #800;
}

ul.errorlist {
  color: #e63e18;
  font-weight: bold;
  margin-bottom: 1rem;
  list-style-type: none;
  padding: 0;
}

.error {
  color: #e63e18;
  font-weight: bold;
}

.errorlist li {
  margin: 0.25rem 0;
}