/* ==============================
   KTV Booking Page Styles
   File: /assets/css/booking.css
   ============================== */

/* 🎨 Theme Variables */
:root {
  --primary: #10B981;
  --primary-dark: #84CC16;
  --gray-border: #d1d5db;
  --gray-text: #6B7280;
  --gray-text-dark: #374151;
  --background-light: #f9fafb;
  --background-note: #f0fdf4;
  --text-default: #111827;
}

/* ==============================
   📦 Layout Containers
============================== */

.booking-section {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.booking-form {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ==============================
   🧾 Form Styles
============================== */

.booking-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid var(--gray-border);
  border-radius: 0.375rem;
  font-size: 1rem;
  background-color: #fff;
  color: var(--text-default);
  transition: border-color 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.booking-form button {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.booking-form button:hover,
.booking-form button:focus,
.booking-form button:active {
  background: var(--primary-dark);
}

.booking-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==============================
   ✅ Consent Block
============================== */

.consent-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-default);
  flex-wrap: wrap;
}

.consent-wrapper input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(1px);
}

.consent-wrapper input[type="checkbox"]:checked {
  background-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  transform: scale(1.1);
}

.consent-wrapper input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.8);
  opacity: 0;
  transition: all 0.2s ease;
}

.consent-wrapper input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.consent-wrapper label {
  font-weight: 500;
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
}

/* ==============================
   💬 Notes and Reminders
============================== */

.next-step-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gray-text-dark);
  background: var(--background-note);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.booking-reminder {
  background: var(--background-light);
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.booking-reminder h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.booking-reminder p {
  font-size: 1rem;
  color: var(--gray-text-dark);
  margin: 0.5rem 0;
}

/* ==============================
   🔗 Link Styling
============================== */

.link-highlight {
  color: var(--primary);
  font-weight: bold;
  text-decoration: underline;
}

/* ==============================
   🔄 Spinner
============================== */

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #ccc;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================
   📱 Responsive Design
============================== */

@media (max-width: 600px) {
  .consent-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary {
    width: 100%;
    display: block;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 2rem;
  }

  .booking-section,
  .booking-form {
    padding: 1.5rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .booking-section {
    padding: 2rem 1.5rem;
  }
}

.input-error {
  border-color: #e95670 !important;
  box-shadow: 0 0 0 2px #e9567077;
}