/* ===== Overlay ===== */
.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;     /* ВИЩЕ, ніж header */
}

/* ===== Modal container ===== */
.modal__container {
  background: #ffe235;
  width: 100%;
  max-width: 460px;
  padding: 28px 26px 32px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: modalFade 0.25s ease;
}

/* ===== Title ===== */
.modal__container h2 {
  margin: 0 0 16px;
  text-align: center;
  font-family: 'Comfortaa', cursive;
  font-size: 26px;
  font-weight: 700;
  color: #1f1f1f;
}

/* ===== Form ===== */
#review-form {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
}

#review-form input,
#review-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  outline: none;
}

#review-form input:focus,
#review-form textarea:focus {
  border-color: #ff9800;
}

#review-form textarea {
  min-height: 90px;
  max-height: 300px;
  resize: vertical;
}

/* ===== Stars ===== */
.stars_modal {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px;
}

.stars_modal span {
  font-size: 32px;
  cursor: pointer;
  color: #c9c9c9;
  transition: transform 0.15s ease, color 0.15s ease;
}

.stars_modal span:hover {
  transform: scale(1.15);
}

.stars_modal span.active {
  color: #ff9800;
}

/* ===== Submit button ===== */
#review-form button {
  width: 100%;
  padding: 12px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'comfortaa', cursive;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#review-form button:hover {
  background: #1a1a1a;
}

#review-form button:active {
  transform: translateY(1px);
}

/* ===== Animation ===== */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
