/* Hero (inner pages) */
.schedule-page {
  max-width: 700px;
  margin: 2rem auto 4rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.schedule-page h1 {
  text-align: center;
  color: #002868;
  margin-bottom: 0.25rem;
  font-size: 1.75rem;
}

.schedule-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Form Layout: force single column --- */
.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: block !important;
  border-top: none;
  padding: 0;
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #002868;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #002868;
  background: #fff;
  outline: none;
}

/* Larger description box */
#description {
  min-height: 180px;
  resize: vertical;
}

/* Required asterisk */
.required {
  color: #c00;
}

/* --- Service Tags (multi-service display as removable pills) --- */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.service-tag {
  display: inline-block;
  background: #e9f0fa;
  color: #002868;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.service-tag:hover {
  background: #002868;
  color: #fff;
  transform: scale(1.05);
}

.service-tag:active {
  transform: scale(0.95);
}

/* Hide the raw service input, but keep it in DOM for form submission */
#service {
  display: none;
}

/* --- Submit Button --- */
.btn-primary {
  align-self: center;
  margin-top: 1rem;
  background: rgba(191, 10, 48, 0.9);
  padding: 0.9rem 2rem;
  font-size: 1.15rem;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: rgba(191, 10, 48, 1);
  transform: translateY(-3px);
}

/* --- Thank You Modal --- */
#thankyou-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

#thankyou-modal .modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  text-align: center;
  position: relative;
}

#thankyou-modal h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #002868;
}

#thankyou-modal p {
  font-size: 1rem;
  color: #444;
}

/* Close button inside modal */
#thankyou-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Hide modal initially */
.modal.hidden,
#thankyou-modal.hidden {
  display: none !important;
}

/* Prevent background scroll when modal open */
body.modal-open {
  overflow: hidden;
}

.schedule-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(191, 10, 48, 0.9);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.schedule-btn:hover {
  background: rgba(191, 10, 48, 1);
  transform: translateY(-2px);
}

/* ------------------------------
   Responsive Adjustments
------------------------------- */
@media (max-width: 768px) {
  .schedule-page {
    padding: 1.5rem;
    margin: 1.5rem 1rem 3rem;
  }

  .schedule-page h1 {
    font-size: 1.5rem;
  }

  .schedule-intro {
    font-size: 0.95rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .schedule-page {
    padding: 1rem;
    margin: 1rem 0.75rem 2rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  #description {
    min-height: 140px;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
  }

  .service-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.65rem;
  }
}
