/* ================= BOOKING SECTION ================= */

.booking-section {
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
}

.booking-section h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 2.5rem;
  color: #191970;
}

/* ================= FORM PROGRESS BAR ================= */

.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  grid-column: span 2; /* Span full width in grid */
}

.progress-step {
  flex: 1;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #f0f0f0;
  color: #666;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 0.3rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.progress-step.active {
  background: linear-gradient(45deg, #191970, #228b22);
  color: #fff;
  box-shadow: 0 5px 15px rgba(25, 25, 112, 0.3);
}

.progress-step:hover:not(.active) {
  background: #e0e0e0;
  border-color: #228b22;
}

/* ================= FORM ================= */

.booking-form {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  position: relative; /* For absolute positioning of success message */
}

/* ================= FORM GROUP ================= */

.form-group {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #333;
  font-size: 0.95rem;
}

/* ================= ERROR MESSAGES ================= */

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: none;
  font-weight: 500;
}

/* ================= SUCCESS MESSAGE ================= */

.success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  grid-column: span 2;
  border: 1px solid #c3e6cb;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= INPUT + ICON ================= */

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #191970;
  font-size: 15px;
  opacity: 0.85;
  pointer-events: none;
}

.input-icon input,
.input-icon select,
.input-icon textarea {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border-radius: 14px;
  border: 2px solid #e0e0e0;
  background: #fafafa;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.textarea-icon i {
  top: 18px;
  transform: none;
}

.input-icon input:focus,
.input-icon select:focus,
.input-icon textarea:focus {
  border-bottom-color: #2e8b57;
  outline: none;
  box-shadow: none;
}


/* Invalid state for validation */
.input-icon input,
.input-icon select,
.input-icon textarea {
  border: 2px solid #e5e7eb;
  background: #fafafa;
}


/* ================= BUTTON ================= */

.btn-submit {
  grid-column: span 2;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(45deg, #191970, #228b22);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(25, 25, 112, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(25, 25, 112, 0.6);
}

.btn-submit:focus {
  outline: none;
  box-shadow: 0 10px 25px rgba(25, 25, 112, 0.4), 0 0 0 4px rgba(34, 139, 34, 0.3);
}

/* Loading state with spinner */
.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
  color: transparent;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .booking-form {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .form-group.full,
  .btn-submit,
  .form-progress,
  .success-message {
    grid-column: span 1;
  }

  .progress-step {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
    margin: 0 0.2rem;
  }

  .booking-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .form-progress {
    flex-direction: column;
    gap: 0.5rem;
  }

  .progress-step {
    margin: 0;
  }

  .btn-submit {
    font-size: 0.95rem;
  }
}

/* ================= INPUT + ICON ================= */

.input-icon input:focus,
.input-icon select:focus,
.input-icon textarea:focus {
  border-color: #228b22;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1); /* Softer, lighter glow */
}

/* ================= BUTTON ================= */

.btn-submit:focus {
  outline: none;
  box-shadow: 0 10px 25px rgba(25, 25, 112, 0.4), 0 0 0 3px rgba(34, 139, 34, 0.2); /* Matching softer glow */
  transform: translateY(-2px); /* Slight lift for focus */
}

.form-section {
  padding: 2rem;
  border-radius: 18px;
  background: #f9fafb;
}

.form-section:not(:last-child) {
  margin-bottom: 2rem;
}


