/* ===== Book-appointment modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 50, 46, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  border-radius: 28px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(20px);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 24px 80px rgba(20, 50, 46, .18);
}
.modal-overlay.is-open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #F0FAF7;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: #3E5C57;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.modal-close:hover { background: #D9F6EF; }

.modal-title {
  font-size: 24px;
  font-weight: 900;
  color: #14322E;
  letter-spacing: -.025em;
  margin: 0 0 6px;
}
.modal-sub {
  font-size: 14.5px;
  color: #5A7570;
  font-weight: 600;
  margin: 0 0 26px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #14322E;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #B7EFE5;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #14322E;
  background: #F8FFFE;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #25C9B0;
  box-shadow: 0 0 0 3px rgba(37, 201, 176, .15);
  background: #fff;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  font-size: 15.5px;
}
.modal-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.modal-success {
  text-align: center;
  padding: 20px 0 8px;
}
.modal-success svg {
  width: 56px;
  height: 56px;
  color: #25C9B0;
  margin-bottom: 16px;
}
.modal-success h3 {
  font-size: 22px;
  font-weight: 900;
  color: #14322E;
  margin: 0 0 8px;
}
.modal-success p {
  font-size: 15px;
  color: #5A7570;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 500px) {
  .modal-box {
    padding: 32px 22px 28px;
    border-radius: 22px;
  }
  .modal-title { font-size: 21px; }
}
