/* Reservation Page Specific Styles */
.reservation-section {
  padding: 2rem 0 4rem;
  background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
  min-height: 100vh;
}

.reservation-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Progress Steps */
.progress-steps {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.step-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.step.active .step-icon {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
}

.step.active .step-icon svg {
  color: var(--primary-foreground);
}

.step.completed .step-icon {
  background: var(--primary);
  border-color: var(--primary);
}

.step.completed .step-icon svg {
  color: var(--primary-foreground);
}

.step-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: center;
  transition: color 0.3s ease;
}

.step.active .step-title,
.step.completed .step-title {
  color: var(--foreground);
  font-weight: 600;
}

.step-line {
  width: 4rem;
  height: 2px;
  background: var(--border);
  margin: 0 1rem;
  position: relative;
  transition: background-color 0.3s ease;
}

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

/* Form Card */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--primary) / 10 0%, var(--primary) / 5 100%);
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

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

/* Form Steps */
.reservation-form {
  padding: 2rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
}

.input-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  background: var(--primary) / 10;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--background);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.4;
}

.error-message {
  color: var(--destructive);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.error-message:empty {
  display: none;
}

/* Phone Input */
.phone-input {
  display: flex;
  gap: 0.5rem;
}

.phone-input select {
  flex: 0 0 120px;
}

.phone-input input {
  flex: 1;
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 0.25rem;
  background: var(--background);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.125rem;
  width: 0.25rem;
  height: 0.5rem;
  border: solid var(--primary-foreground);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Return Details */
.return-option {
  margin-bottom: 2rem;
}

.return-details {
  background: var(--muted) / 50;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
}

/* Confirmation Summary */
.confirmation-summary {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.summary-section {
  background: var(--muted) / 30;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.summary-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.summary-item span:first-child {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.summary-item span:last-child {
  font-weight: 500;
  color: var(--foreground);
}

/* Price Summary */
.price-summary {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.05) 0%, rgba(234, 88, 12, 0.1) 100%);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0.5rem;
  border-top: 2px solid rgba(234, 88, 12, 0.2);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(234, 88, 12, 0.2);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.payment-info svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

/* Privacy Policy */
.privacy-policy {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.privacy-policy a {
  color: var(--primary);
  text-decoration: none;
}

.privacy-policy a:hover {
  text-decoration: underline;
}

/* Success Step */
.success-step {
  text-align: center;
  padding: 3rem 1rem;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.success-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.success-content p {
  color: var(--muted-foreground);
  font-size: 1rem;
  max-width: 400px;
}

.reservation-number {
  background: var(--muted);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.reservation-number strong {
  color: var(--primary);
  font-weight: 700;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: var(--muted) / 20;
}

.form-navigation .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-navigation .btn svg {
  width: 1rem;
  height: 1rem;
}

.form-navigation .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-navigation .btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Price Sidebar */
.price-sidebar {
  position: sticky;
  top: 2rem;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.price-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.price-display {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-amount {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.price-type {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price-features {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Loading State */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .reservation-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .price-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .progress-steps {
    padding: 1rem;
    overflow-x: auto;
  }

  .step {
    min-width: 80px;
  }

  .step-line {
    width: 2rem;
    margin: 0 0.5rem;
  }

  .step-title {
    font-size: 0.75rem;
  }

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

  .reservation-form {
    padding: 1rem;
  }

  .form-header {
    padding: 1.5rem 1rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .form-navigation {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .form-navigation .btn {
    width: 100%;
    justify-content: center;
  }

  .phone-input {
    flex-direction: column;
  }

  .phone-input select {
    flex: none;
  }
}

@media (max-width: 480px) {
  .reservation-section {
    padding: 1rem 0 2rem;
  }

  .reservation-container {
    padding: 0 0.5rem;
  }

  .progress-steps {
    margin-bottom: 1rem;
  }

  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .step-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .form-header h2 {
    font-size: 1.25rem;
  }

  .form-header p {
    font-size: 0.875rem;
  }

  .summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .price-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* iPhone Specific Reservation Optimizations */
@media screen and (max-width: 414px) and (-webkit-min-device-pixel-ratio: 2) {
  .reservation-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.75rem;
  }
  
  .progress-steps {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .step {
    gap: 0.25rem;
  }
  
  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .step-title {
    font-size: 0.75rem;
  }
  
  .form-card {
    padding: 1rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .price-sidebar {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  
  .price-card {
    padding: 1rem;
  }
}

@media screen and (max-width: 375px) and (-webkit-min-device-pixel-ratio: 2) {
  .reservation-container {
    padding: 0 0.5rem;
  }
  
  .progress-steps {
    padding: 0.75rem;
  }
  
  .step-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .step-title {
    font-size: 0.7rem;
  }
  
  .form-card {
    padding: 0.75rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.625rem;
  }
  
  .btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 320px) and (-webkit-min-device-pixel-ratio: 2) {
  .reservation-container {
    padding: 0 0.25rem;
  }
  
  .progress-steps {
    padding: 0.5rem;
  }
  
  .step-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .step-title {
    font-size: 0.65rem;
  }
  
  .form-card {
    padding: 0.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* iOS Safari specific reservation fixes */
@supports (-webkit-touch-callout: none) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    -webkit-appearance: none;
    border-radius: 0;
  }
  
  .btn {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Fix iOS form styling */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    font-size: 16px;
    -webkit-appearance: none;
  }
}
