/* Globální vzhled */
html, body {
  height: 100%;
  background-color: #f1f3f5;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Centrovaný layout */
.d-flex-top-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
  height: 100%;
}

.audit-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
  min-height: 100vh;
  background-color: #f1f3f5;
}

/* Šířka karty podle stránky */
body.index-page .card-audit {
  max-width: 350px;  /* úvodní stránka s formulářem jméno+e-mail */
}
body.question-page .card-audit,
body.finish-page .card-audit {
  max-width: 800px;  /* dotazník a děkovná stránka */
}

/* Karta (common) */
.card-audit {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.card-body {
  padding: 2rem;
}

/* Nadpis */
.audit-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

/* Popisky polí */
.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Větší mezera mezi bloky */
.mb-extra {
  margin-bottom: 1.0rem;
}

.form-group {
  margin-bottom: 1.2rem;
  width: 100%;    /* zajistí plnou šířku pole */
}

/* Tlačítko */
.btn-start {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  min-height: 3.2rem;
  box-sizing: border-box;
  margin-top: 1rem;
}

/* Chybová hláška */
.alert-error {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Pole formuláře */
input.form-control {
  width: 100%;            /* zabere celou šířku rodiče */
  padding: 0.55rem 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  min-height: 2.0rem;
  box-sizing: border-box;
}

/* Bootstrap tlačítko */
.btn-success {
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: background-color 0.15s ease-in-out;
}
.btn-success:hover {
  background-color: #157347;
  border-color: #146c43;
}

/* Mobilní úpravy */
@media (max-width: 480px) {
  .card-audit {
    max-width: 100%;
    margin: 1rem;
    border-radius: 0.5rem;
  }
  .audit-wrapper {
    padding-top: 1rem;
  }
}

/* Větší mezera mezi možnostmi u rádia */
.card-audit .form-group > div {
  margin-bottom: 0.75rem;
}

/* celý .card-clickable se chová jako odkaz */
.card-clickable {
  display: block;            /* aby šlo obalit <div> */
  text-decoration: none;     /* žádné podtržení */
  color: inherit;            /* zdědí barvu textu */
  cursor: pointer;           /* ukazatel na „klikaci“ */
}

/* Zruší výchozí link‐styling (podtržení a barvu) pro celou klikací kartu */
.card-clickable,
.card-clickable * {
  text-decoration: none !important;
  color: inherit !important;
}

/* A aby se stále ukazatel změnil na ruku */
.card-clickable {
  cursor: pointer;
}
