/* ===============================================
   PREMIUM MODAL – ZIMERSTAV s.r.o.
   Elegantní firemní styl
================================================ */

.zs-hidden {
   display: none !important;
}

.zs-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(6px);
}

.zs-content {
  position: relative;
  z-index: 2;

  width: 90%;
  max-width: 520px;

  background: #fffbee; /* jemná žlutá */
  border-radius: 16px;
  padding: 40px 45px;

  border: 1px solid rgba(251,191,36,0.35);
  box-shadow: 0 22px 34px rgba(0,0,0,0.22);

  animation: zsFadeIn 0.35s ease-out;
}

@keyframes zsFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.zs-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #111;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.25s;
}

.zs-close:hover {
  color: #fbbf24;
}

.zs-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.zs-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 28px;
}

.zs-content label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  display: block;
}

.zs-content input,
.zs-content textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  padding: 11px;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 18px;
}

.zs-submit {
  width: 100%;
  padding: 14px 20px;
  background: #fbbf24;
  color: #111;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 5px;
  transition: 0.25s;
}

.zs-submit:hover {
  background: #ffe58f;
}

@media (max-width: 600px) {

  /* Celý modal o něco menší */
  .zs-content {
    width: 88%;
    padding: 22px 18px;
    border-radius: 10px;
  }

  /* Titulek menší a kompaktní */
  .zs-title {
    font-size: 1.45rem;
    margin-bottom: 4px;
  }

  /* Podnadpis */
  .zs-subtitle {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  /* Label */
  .zs-content label {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  /* INPUTS */
  .zs-content input,
  .zs-content textarea {
    font-size: 0.9rem;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .zs-content textarea {
    height: 90px; /* menší výška textarea */
    resize: vertical;
  }

  /* Zavírací tlačítko */
  .zs-close {
    font-size: 1.2rem;
    top: 8px;
    right: 8px;
  }

  /* Odeslat */
  .zs-submit {
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 2px;
  }
}
/* ===============================================
   iPhone 12–15, 375 px width fix (NEJVĚTŠÍ jistota)
================================================ */
@media (max-width: 400px) {

  .zs-content {
    width: 92% !important;           /* ještě menší šířka */
    max-width: 350px !important;     /* nesmí přesáhnout viewport */
    padding: 18px 16px !important;   /* menší vnitřní odsazení */
    box-sizing: border-box !important;
  }

  .zs-title {
    font-size: 1.35rem !important;
    margin-bottom: 6px !important;
  }

  .zs-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
  }

  .zs-content input,
  .zs-content textarea {
    font-size: 0.9rem !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
    border-radius: 6px !important;
  }

  .zs-content textarea {
    height: 85px !important;
  }

  .zs-submit {
    font-size: 1rem !important;
    padding: 10px 15px !important;
  }
}