/* CSS Document */
                                                                                                                             /* === ZÁKLADNÍ FORMULÁŘ === */
form.form-ms {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f1f8e9;
  border: 1px solid #c5e1a5;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

/* === NADPISY V RÁMCI FORMULÁŘE === */
form.form-ms h2 {
  margin-top: 30px;
  color: #2e7d32;
  font-size: 1.4rem;
  border-bottom: 1px solid #c5e1a5;
  padding-bottom: 5px;
}

/* === POLE A POPISKY === */
form.form-ms label {
  display: block;
  font-weight: 500;
  color: #33691e;
}

form.form-ms input[type="text"],
form.form-ms input[type="email"],
form.form-ms input[type="tel"],
form.form-ms input[type="date"],
form.form-ms input[type="number"],
form.form-ms select,
form.form-ms textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c5e1a5;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  box-sizing: border-box;
}

form.form-ms textarea {
  resize: vertical;
  min-height: 80px;
}


.radio-inline {
  display: flex;
  gap: 1.5em;
  align-items: center;
  margin-top: 0.5em;
}

.radio-inline input[type="radio"] {
  margin-right: 0.3em;
}


/* === CHECKBOXY A RADIO === */
form.form-ms input[type="checkbox"],
form.form-ms input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.1);
}

/* === TLAČÍTKO ODESLAT === */
form.form-ms button[type="submit"] {
  align-self: flex-start;
  background-color: #2e7d32;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

form.form-ms button[type="submit"]:hover {
  background-color: #388e3c;
}

/* === CHYTRÉ SKRYTÉ POLE (HONEYPOT) === */
form.form-ms input[name="robot"] {
  display: none;
}


/* === hláška === */
.form-status {
  margin: 1em 0;
  padding: 1em;
  border-radius: 6px;
  font-weight: bold;
  display: none;
  transition: opacity 0.5s ease;
  scroll-margin-top: 100px; /* pro přesný posun */
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}




/* === RESPONSIVITA === */
@media (max-width: 600px) {
  form.form-ms {
    padding: 20px;
  }
}
