/**
 * Booking Page Styles for Louka Beach Bali
 * Multi-step booking flow styling
 */

.booking-page {
  min-height: 100vh;
  padding: 120px 0 4rem 0;
  background: var(--color-bg-cream);
}

/* Progress Indicator */
.booking-progress {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 0.5rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-beige);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-bg-beige);
}

.progress-step.active .step-number {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.progress-step.completed .step-number {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.step-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  font-weight: 500;
}

.progress-step.active .step-label {
  color: var(--color-text-dark);
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--color-bg-beige);
  margin: 0 0.5rem;
  position: relative;
  top: -20px;
}

.progress-line.completed {
  background: var(--color-primary);
}

/* Booking Steps */
.booking-step {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.step-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.step-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.step-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.step-content {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-bg-beige);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

/* Joglo Selection Grid */
.joglo-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.joglo-card-select {
  border: 2px solid var(--color-bg-beige);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.joglo-card-select:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 166, 97, 0.2);
}

.joglo-card-select.selected {
  border-color: var(--color-primary);
  background: rgba(198, 166, 97, 0.05);
}

.joglo-card-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
}

.joglo-card-select input[type="checkbox"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  width: auto;
  flex-shrink: 0;
}

.joglo-card-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
}

.joglo-card-text {
  flex: 1;
  min-width: 0;
}

.joglo-card-select h4 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.joglo-card-select .joglo-size {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0;
}

.joglo-card-select .price {
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.joglo-card-image {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg-beige);
}

.joglo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Price Preview */
.price-preview {
  background: var(--color-bg-beige);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.price-row.total {
  border-top: 2px solid var(--color-primary);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Reservation Timer */
.reservation-timer {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.timer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timer-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #856404;
  font-family: monospace;
}

.timer-progress {
  height: 4px;
  background: #ffeaa7;
  border-radius: 2px;
  overflow: hidden;
}

.timer-progress-bar {
  height: 100%;
  background: #ffc107;
  transition: width 1s linear;
}

/* Booking Summary */
.booking-summary {
  background: var(--color-bg-beige);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.booking-summary h3 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.summary-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(198, 166, 97, 0.2);
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.checkbox-group {
  margin-top: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

/* Payment Loading */
.payment-loading {
  text-align: center;
  padding: 3rem;
}

.payment-loading i {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-step {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .joglo-selection-grid {
    grid-template-columns: 1fr;
  }
  
  .joglo-card-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .joglo-card-image {
    width: 100%;
    height: 150px;
    margin-top: 1rem;
  }
  
  .step-actions {
    flex-direction: column;
  }
  
  .step-actions .btn {
    width: 100%;
  }
}
