/* =========================
   PODROBNÝ POPTÁVKOVÝ FORMULÁŘ
   (načítá se za index.css)
========================= */

/* levá karta zůstane při scrollování vedle formuláře */

.contact-content {
  align-items: stretch;
}

.contact-form-card {
  display: flex;
  flex-direction: column;

  border: 1px solid #EFE9E2;
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(59, 47, 42, .07);
}

.inquiry-form {
  flex: 1;
  gap: 24px;
}


/* UKAZATEL POSTUPU */

.form-progress {
  list-style: none;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.form-progress li {
  display: flex;
  align-items: center;
  gap: 8px;

  padding-top: 12px;
  border-top: 3px solid #EFE9E2;

  color: #A39890;
  font-size: 12px;
  font-weight: 800;

  transition: .3s ease;
}

.form-progress li span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.form-progress li.is-done {
  border-color: #B8A492;
  color: #8C7563;
}

.form-progress li.is-active {
  border-color: var(--forest);
  color: var(--forest);
}


/* KROKY 01 / 02 / 03 */

.form-step {
  display: flex;
  flex-direction: column;
  gap: 18px;

  min-width: 0;
  padding: 0;

  border: none;
}

.form-step:not(.is-active) {
  display: none;
}

.form-step.is-active {
  animation: step-in .35s ease;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .form-step.is-active { animation: none; }
}

.form-step legend {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;
  padding: 0;

  color: var(--forest);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.form-step legend span {
  color: #B8A492;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.form-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--forest);
}

.form-group label em {
  margin-left: 4px;

  color: #A39890;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}


/* KLIKACÍ ŠTÍTKY */

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 15px;

  border: 1px solid #EFE8DE;
  border-radius: 30px;

  background: #FBFAF6;
  color: var(--forest);

  font-size: 12px;
  font-weight: 800;

  transition: .25s ease;
}

.chip:hover span {
  border-color: #B8A492;
  background: #F4F0E6;
}

.chip input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

.chip--check input:checked + span::before {
  content: "✓";
  font-weight: 900;
}

.chip input:focus-visible + span {
  outline: 2px solid #8C7563;
  outline-offset: 2px;
}


/* SOUHLAS */

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;

  cursor: pointer;
}

.form-consent input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;

  accent-color: var(--forest);
}

.form-consent a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
}

.inquiry-form .contact-submit i {
  font-size: 17px;
}


/* TLAČÍTKA ZPĚT / POKRAČOVAT */

.form-nav {
  display: flex;
  gap: 10px;

  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #EFE9E2;
}

.form-nav [hidden] {
  display: none !important;
}

.form-nav .contact-submit {
  flex: 1;
}

.form-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 15px 22px;

  border: 1px solid #EFE8DE;
  border-radius: 10px;

  background: transparent;
  color: var(--forest);

  font-family: inherit;
  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
  transition: .3s;
}

.form-back:hover {
  border-color: #B8A492;
  background: #F4F0E6;
}

.form-back i {
  font-size: 17px;
}

.contact-form-note {
  margin-top: -8px;
}


/* MOBIL */

@media (max-width: 500px) {

  .form-progress li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 11px;
  }
}

@media (max-width: 500px) {

  .chip span {
    padding: 9px 13px;
    font-size: 11px;
  }

  .form-step legend {
    font-size: 16px;
  }
}

/* číslo kroku už ukazuje horní lišta */
.form-step legend span {
  display: none;
}

/* STÍN A ZAOBLENÍ JAKO U OSTATNÍCH KARET */

.contact-info,
.contact-form-card {
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(59, 47, 42, .10);
}

.contact-info {
  border: 1px solid rgba(59, 47, 42, .06);
}

.contact-form-card {
  border: 1px solid #EFE9E2;
}

/* tlačítko na ceník bez ikonky vlevo – víc místa u textu */
.contact-pricing-link:not(:has(.pricing-link-icon)) {
  padding-left: 24px;
}


/* odkaz na ukázky v otázce formuláře */
.form-label a {
  color: var(--forest);
  text-decoration: underline;
}

.form-label em {
  margin-left: 4px;

  color: #A39890;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}


/* =========================
   DĚKOVNÁ OBRAZOVKA PO ODESLÁNÍ
========================= */

.form-success {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background:
    radial-gradient(circle at 50% 40%, rgba(184, 164, 146, .25) 0%, rgba(59, 47, 42, 0) 60%),
    #3B2F2A;
  color: #F4F0E6;

  text-align: center;

  animation: success-fade .45s ease;
}

.form-success[hidden] {
  display: none;
}

.form-success-inner {
  max-width: 560px;

  display: flex;
  flex-direction: column;
  align-items: center;

  animation: success-up .6s ease;
}

.form-success-icon {
  width: 92px;
  height: 92px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 30px;

  border-radius: 50%;
  background: #F4F0E6;
  color: #3B2F2A;

  box-shadow: 0 0 0 12px rgba(244, 240, 230, .12);

  font-size: 44px;

  animation: success-pop .6s .15s ease both;
}

.form-success-label {
  margin-bottom: 16px;

  color: #B8A492;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
}

.form-success h2 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -3px;
}

.form-success h2 span {
  color: #B8A492;
  font-style: italic;
}

.form-success p {
  max-width: 420px;
  margin-top: 22px;

  color: #EFE8DE;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
}

.form-success-close {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 34px;
  padding: 17px 28px;

  border: none;
  border-radius: 35px;

  background: #F4F0E6;
  color: #3B2F2A;

  font-family: inherit;
  font-size: 14px;
  font-weight: 900;

  cursor: pointer;
  transition: .3s ease;
}

.form-success-close:hover {
  background: #E8DFD3;
  transform: translateY(-3px);
}

.form-success-close i {
  font-size: 17px;
}

@keyframes success-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes success-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes success-pop {
  0%   { transform: scale(.4); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .form-success,
  .form-success-inner,
  .form-success-icon {
    animation: none;
  }
}

@media (max-width: 500px) {
  .form-success h2 {
    letter-spacing: -2px;
  }

  .form-success p {
    font-size: 14px;
  }

  .form-success-icon {
    width: 76px;
    height: 76px;
    font-size: 36px;
  }
}


/* DUCH NA DĚKOVNÉ OBRAZOVCE */

.form-success-ghost {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 26px;

  animation:
    success-pop .6s .15s ease both,
    success-float 4s 1s ease-in-out infinite;
}

@keyframes success-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .form-success-ghost {
    animation: none;
  }
}

@media (max-width: 500px) {
  .form-success-ghost {
    width: 140px;
  }
}
