/**
 * Booking Page Styles
 * @package BlackPearl
 */

/* Booking Page Layout */
.booking-page .page-hero {
  padding: 6rem 0 4rem;
  background: var(--dark-charcoal);
  text-align: center;
}

.booking-page .page-title {
  color: white;
  margin-bottom: 1rem;
}

.booking-page .page-description {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.booking-section {
  padding: 4rem 0 6rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* Booking Form Wrapper */
.booking-form-wrapper {
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--neutral-gray);
}

.booking-form-wrapper h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--dark-charcoal);
}

/* Form Sections */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--neutral-gray);
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--dark-charcoal);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-gold);
  display: inline-block;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-charcoal);
  font-size: 0.95rem;
}

.form-group .required {
  color: var(--accent-rose);
}

/* Form Row (for side-by-side fields) */
.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group.half {
  flex: 1;
}

/* Input Styles */
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--neutral-gray);
  background: white;
  color: var(--dark-charcoal);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: #999;
}

.booking-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.booking-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-label input,
.checkbox-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom,
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--neutral-gray);
  margin-right: 0.75rem;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.radio-custom {
  border-radius: 50%;
}

.checkbox-custom {
  border-radius: 3px;
}

.radio-label input:checked + .radio-custom,
.checkbox-label input:checked + .checkbox-custom {
  border-color: var(--primary-gold);
  background: var(--primary-gold);
}

.radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.radio-label input:checked + .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 12px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.checkbox-label input:checked + .checkbox-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.checkbox-group {
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label a {
  color: var(--primary-gold);
  text-decoration: underline;
}

/* Date Fields */
.date-fields {
  margin-top: 1rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.form-divider {
  color: #999;
  font-size: 0.9rem;
}

/* Success Message */
.booking-success {
  text-align: center;
  padding: 4rem 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gold);
  color: white;
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.booking-success h2 {
  color: var(--dark-charcoal);
  margin-bottom: 1rem;
}

.booking-success p {
  color: #666;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Booking Sidebar */
.booking-sidebar {
  position: sticky;
  top: 120px;
}

.info-card {
  background: white;
  padding: 2rem;
  border: 1px solid var(--neutral-gray);
  margin-bottom: 1.5rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--dark-charcoal);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-gold);
}

/* Booking Steps */
.booking-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-steps li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.booking-steps li:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--primary-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  color: var(--dark-charcoal);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Quick Contact */
.contact-quick {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-quick li {
  margin-bottom: 0.75rem;
}

.contact-quick a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark-charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-quick a:hover {
  color: var(--primary-gold);
}

.contact-quick svg {
  flex-shrink: 0;
}

/* Discretion Notice */
.booking-sidebar .discretion-notice {
  background: var(--dark-charcoal);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.booking-sidebar .discretion-notice h4 {
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.booking-sidebar .discretion-notice p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Large screens - wider form */
@media (min-width: 1400px) {
  .booking-section .container {
    max-width: 1400px;
  }

  .booking-grid {
    max-width: 1300px;
  }

  .booking-form-wrapper {
    padding: 3rem;
  }
}

/* Responsive - Large tablets and small desktops */
@media (max-width: 1200px) {
  .booking-grid {
    grid-template-columns: 1fr 320px;
    gap: 2rem;
  }

  .booking-form-wrapper {
    padding: 2rem;
  }

  .info-card {
    padding: 1.5rem;
  }
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
  .booking-page .page-hero {
    padding: 5rem 0 3rem;
  }

  .booking-section {
    padding: 3rem 0 4rem;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .booking-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .booking-sidebar .discretion-notice {
    grid-column: 1 / -1;
  }
}

/* Responsive - Small tablets */
@media (max-width: 768px) {
  .booking-page .page-hero {
    padding: 4rem 0 2.5rem;
  }

  .booking-page .page-title {
    font-size: 2rem;
  }

  .booking-page .page-description {
    font-size: 0.95rem;
  }

  .booking-section {
    padding: 2rem 0 3rem;
  }

  .booking-form-wrapper {
    padding: 1.5rem;
  }

  .form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .form-section-title {
    font-size: 1.1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group.half {
    flex: none;
  }

  .radio-group {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-divider {
    text-align: center;
  }

  .booking-sidebar {
    grid-template-columns: 1fr;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .booking-page .page-hero {
    padding: 3rem 0 2rem;
  }

  .booking-page .page-title {
    font-size: 1.75rem;
  }

  .booking-page .section-label {
    font-size: 0.75rem;
  }

  .booking-section {
    padding: 1.5rem 0 2.5rem;
  }

  .booking-form-wrapper {
    padding: 1.25rem;
    border-left: none;
    border-right: none;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .form-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .booking-form input[type="text"],
  .booking-form input[type="email"],
  .booking-form input[type="tel"],
  .booking-form input[type="date"],
  .booking-form select,
  .booking-form textarea {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .checkbox-label,
  .radio-label {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .radio-custom,
  .checkbox-custom {
    width: 18px;
    height: 18px;
  }

  .form-actions {
    margin-top: 1.5rem;
    gap: 0.75rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  .info-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .booking-steps li {
    margin-bottom: 1rem;
  }

  .step-content strong {
    font-size: 0.9rem;
  }

  .step-content p {
    font-size: 0.85rem;
  }

  .contact-quick a {
    font-size: 0.9rem;
  }

  .booking-sidebar .discretion-notice {
    padding: 1.25rem;
  }

  .booking-sidebar .discretion-notice h4 {
    font-size: 0.9rem;
  }

  .booking-sidebar .discretion-notice p {
    font-size: 0.85rem;
  }

  .booking-success {
    padding: 2.5rem 1rem;
  }

  .booking-success h2 {
    font-size: 1.5rem;
  }

  .success-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
