/* === OBJEDNÁVACÍ STRÁNKA === */
.body-bg {
  background: radial-gradient(ellipse at top left, #23272b 60%, #141619 100%);
  font-family: "Montserrat", Arial, sans-serif;
  color: #fff;
  min-height: 100vh;
}

/* --- Motivační hláška --- */
.motivace-section {
  text-align: center;
  margin: 46px 0 36px 0;
  margin-top: 150px;
}
.motivace-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.motivace-cta {
  font-size: 1.63rem;
  font-weight: 700;
  color: #22b4e9;
}
.motivace-subtext {
  font-size: 1.05rem;
  color: #e5e5e5;
  opacity: 0.89;
}

/* --- Výběr služby --- */
.vyber-sluzby-section {
  max-width: 410px;
  margin: 0 auto 22px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.vyber-sluzby-label {
  font-weight: 600;
  color: #19d7ff;
  font-size: 1.09rem;
  margin-bottom: 5px;
}

.vyber-sluzby-select {
  width: 100%;
  padding: 14px 11px;
  font-size: 1.13rem;
  border-radius: 16px;
  border: none;
  background: #21242a;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 18px 0 rgba(34, 180, 233, 0.11);
  transition: box-shadow 0.13s;
  appearance: none;
}

.vyber-sluzby-select:focus {
  outline: 2px solid #22b4e9;
}

/* --- Kalendář --- */
.calendar-section {
  display: flex;
  justify-content: center;
  margin: 32px 0 20px 0;
}

.calendar-container {
  background: #191a1e;
  border-radius: 28px;
  box-shadow: 0 4px 28px 0 rgba(34, 180, 233, 0.12);
  padding: 35px 25px 28px 25px;
  max-width: 445px;
  min-width: 295px;
  width: 100%;
  position: relative;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calendar-prev,
.calendar-next {
  background: none;
  color: #19d7ff;
  border: none;
  font-size: 1.51rem;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.14s;
}
.calendar-prev:hover,
.calendar-next:hover {
  color: #22b4e9;
}
.calendar-month-year {
  font-size: 1.19rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.calendar-table-wrap {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.calendar-table th,
.calendar-table td {
  width: 14.28%;
  height: 46px;
  text-align: center;
  font-size: 1.08rem;
  border-radius: 13px;
  transition: background 0.17s, color 0.12s;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.calendar-table th {
  color: #19d7ff;
  font-weight: 600;
  background: none;
  cursor: default;
}
.calendar-table td {
  color: #fff;
  background: #23272b;
  font-weight: 500;
  box-shadow: 0 1px 10px 0 rgba(34, 180, 233, 0.05);
}

.calendar-table td.today {
  background: linear-gradient(90deg, #19d7ff 35%, #22b4e9 100%);
  color: #fff;
  font-weight: 700;
  cursor: not-allowed;
}

.calendar-table td.free {
  background: rgba(34, 180, 233, 0.1);
  color: #22b4e9;
  font-weight: 700;
}
.calendar-table td.full {
  background: #2d2426;
  color: #b24141;
  opacity: 0.67;
  text-decoration: line-through;
  cursor: not-allowed;
}
.calendar-table td.past {
  background: #18191b;
  color: #a9a9a9;
  opacity: 0.6;
  cursor: not-allowed;
}
.calendar-table td.selected {
  background: linear-gradient(90deg, #19d7ff 25%, #22b4e9 75%);
  color: #fff;
  font-weight: 800;
}

.calendar-table td:not(.past):hover:not(.full) {
  background: #19d7ff;
  color: #fff;
  opacity: 1;
}

.calendar-legend {
  margin-top: 10px;
  text-align: center;
  font-size: 0.97rem;
  color: #bfc7ce;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.calendar-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
}
.calendar-dot.free {
  background: #22b4e9;
}
.calendar-dot.full {
  background: #b24141;
}
.calendar-dot.today {
  background: #fff;
  border: 2px solid #22b4e9;
}

/* --- Model základ --- */
.model {
  display: none;
  position: fixed;
  z-index: 1400;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(20, 22, 25, 0.76);
  align-items: center;
  justify-content: center;
  animation: modelFadeIn 0.3s;
}
@keyframes modelFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.model-content {
  background: #23272b;
  margin: auto;
  padding: 32px 27px;
  border-radius: 27px;
  max-width: 385px;
  width: 96vw;
  box-shadow: 0 6px 36px 0 rgba(34, 180, 233, 0.13);
  position: relative;
  animation: modelPopIn 0.29s cubic-bezier(0.28, 1.28, 0.62, 1.01);
}
@keyframes modelPopIn {
  0% {
    transform: scale(0.91) translateY(50px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.model-close {
  position: absolute;
  top: 15px;
  right: 21px;
  background: none;
  border: none;
  font-size: 1.48rem;
  color: #22b4e9;
  cursor: pointer;
  font-weight: 800;
  opacity: 0.8;
  transition: color 0.18s;
}
.model-close:hover {
  color: #19d7ff;
}

.model-title {
  font-size: 1.29rem;
  font-weight: 700;
  color: #22b4e9;
  margin-bottom: 18px;
  text-align: center;
}
.cas-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cas-option-btn {
  background: #19d7ff;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 11px 0;
  font-size: 1.13rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 16px 0 rgba(34, 180, 233, 0.09);
}
.cas-option-btn.unavailable {
  background: #b24141;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.56;
}
.cas-option-btn.selected {
  background: linear-gradient(90deg, #19d7ff 25%, #22b4e9 75%);
  color: #fff;
}

/* --- Formulář objednávky --- */
.objednavka-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 7px;
}

.objednavka-form label {
  font-size: 1.02rem;
  color: #19d7ff;
  font-weight: 600;
}

textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 9px 12px;
  font-size: 1rem;
  border-radius: 12px;
  background: #181b1e;
  color: #fff;
  border: 1px solid #22242a;
  margin-top: 6px;
  margin-bottom: 10px;
  transition: border 0.2s;
  box-sizing: border-box;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border: 1.5px solid #19d7ff;
  outline: none;
}

.gray {
  color: gray;
}

.verify-btn {
  background: #22b4e9;
  color: #fff;
  font-size: 0.99rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  margin-left: 0;
  align-self: flex-start;
  transition: background 0.13s;
}
.verify-btn:disabled {
  background: #7a8388;
  cursor: not-allowed;
}
.verified-text {
  color: #1debb1;
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 6px;
}
.gdpr-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.gdpr-row label a {
  color: #22b4e9;
  text-decoration: underline;
}
.submit-btn {
  margin-top: 10px;
  background: #7a8388;
  color: #fff;
  font-size: 1.14rem;
  font-weight: 700;
  border-radius: 22px;
  border: none;
  padding: 12px 0;
  transition: background 0.13s;
  cursor: not-allowed;
  opacity: 0.7;
}
.submit-btn.enabled {
  background: linear-gradient(90deg, #19d7ff 25%, #22b4e9 75%);
  cursor: pointer;
  opacity: 1;
}
.submit-btn.enabled:hover {
  background: #22b4e9;
}

/* --- Potvrzení Model + animace fajfky --- */
.potvrzeni-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 38px;
  padding-bottom: 32px;
}

.fajfka-animace {
  width: 84px;
  height: 84px;
  margin-bottom: 21px;
  animation: fajfkaZoom 1s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes fajfkaZoom {
  0% {
    transform: scale(0.5) rotate(-18deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.fajfka-svg {
  width: 84px;
  height: 84px;
  display: block;
}
.potvrzeni-title {
  color: #22b4e9;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.potvrzeni-desc {
  color: #eee;
  font-size: 1.01rem;
  text-align: center;
}

.select-border-animator {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 350px;
  min-width: 220px;
  height: 46px;
}

.select-border-animator select {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  border-radius: 12px;
  background: #21242a;
  border: 1.5px solid #21242a;
  font-size: 1rem;
  padding: 0.5em 2em 0.5em 0.8em;
}

.svg-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.svg-border-rect {
  stroke-dasharray: 60 340; /* Výchozí, bude přepsáno JS */
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.18s;
}
.select-border-animator.flash .svg-border-rect {
  opacity: 1;
  transition: none;
  animation: svg-border-segment 1s linear infinite;
}

.select-border-animator.flash-error .svg-border-rect {
  stroke: #ff4c4c !important;
  stroke-dasharray: 200 20; /* 50 je čára, 18 mezera */
  opacity: 1;
  animation: svg-border-segment 0.8s linear infinite;
}

@keyframes svg-border-segment {
  0% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  50% {
    stroke-dashoffset: -200;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -400;
    opacity: 0;
  }
}

.vyber-sluzby-error {
  color: #ff4c4c;
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: -4px;
  font-weight: 600;
  min-height: 20px;
  transition: opacity 0.2s;
}

.hidden {
  display: none;
}

.select-error {
  box-shadow: 0 0 0 2px #ff4c4c, 0 0 6px 2px #ff4c4c44 !important;
  animation: pulse-red 0.6s linear infinite;
  outline: none !important; /* outline zakázat, aby nerušil animaci */
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 2px #ff4c4c, 0 0 6px 2px #ff4c4c44;
  }
  50% {
    box-shadow: 0 0 0 8px #ff4c4c44, 0 0 18px 6px #ff4c4c33;
  }
  100% {
    box-shadow: 0 0 0 2px #ff4c4c, 0 0 6px 2px #ff4c4c44;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 700px) {
  .calendar-container {
    padding: 16px 3px 16px 3px;
    min-width: 0;
    max-width: 98vw;
  }
  .vyber-sluzby-section {
    padding: 0 4px;
  }
  .motivace-cta {
    font-size: 1.03rem;
  }
  .model-content {
    padding: 15px 2vw;
    min-width: 0;
    max-width: 99vw;
  }
}
