/* ========================================
   PREMIUM CHECKOUT - CARIBBEAN THEME
   Two-Column Layout for Maximum Clarity
   ======================================== */

/* ========================================
   CSS VARIABLES - CARIBBEAN PREMIUM
   ======================================== */
:root {
  /* Caribbean Colors */
  --deep-teal: #004D61;
  --caribbean-turquoise: #2FD3C4;
  --coral: #FF6B4A;
  --gold: #FFD700;
  
  /* Neutral Palette */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  
  /* Typography */
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Layout */
  --container-max: 1320px;
  --sidebar-width: 420px;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: linear-gradient(135deg, #F0F9FF 0%, #F9FAFB 50%, #FFF7ED 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--deep-teal);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   HEADER BAR
   ======================================== */
.checkout-header-bar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--deep-teal);
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-display);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--deep-teal), var(--caribbean-turquoise));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--deep-teal), var(--caribbean-turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress Steps */
.checkout-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

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

.progress-step.completed .step-circle svg {
  width: 20px;
  height: 20px;
}

.progress-step.active .step-circle {
  background: linear-gradient(135deg, var(--deep-teal), var(--caribbean-turquoise));
  border-color: var(--deep-teal);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 77, 97, 0.3);
}

.step-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

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

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--gray-300);
  transition: background 0.3s ease;
}

.progress-line.active {
  background: linear-gradient(90deg, var(--deep-teal), var(--caribbean-turquoise));
}

/* Header Security Badge */
.header-security {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  border: 1px solid #86EFAC;
  border-radius: var(--radius-lg);
  color: #166534;
  font-size: 0.875rem;
  font-weight: 600;
}

.header-security .icon-sm {
  width: 16px;
  height: 16px;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
  background: linear-gradient(135deg, var(--deep-teal), #003544);
  padding: var(--space-md) 0;
  color: white;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--caribbean-turquoise);
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   MAIN LAYOUT
   ======================================== */
.checkout-main {
  padding: var(--space-2xl) 0;
  min-height: calc(100vh - 200px);
}

/* Loading State */
.checkout-loading {
  text-align: center;
  padding: var(--space-3xl);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--deep-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-lg);
}

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

/* Page Title Section */
.checkout-title-section {
  margin-bottom: var(--space-2xl);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--deep-teal);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--caribbean-turquoise);
}

.breadcrumb .icon-xs {
  width: 14px;
  height: 14px;
}

.checkout-title-section h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* ========================================
   TWO-COLUMN GRID LAYOUT
   ======================================== */
.checkout-wrapper {
  animation: fadeInUp 0.6s ease;
}

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

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}

/* ========================================
   LEFT COLUMN - FORMS
   ======================================== */
.checkout-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Panel Styles */
.checkout-panel {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.checkout-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--deep-teal), var(--caribbean-turquoise), var(--coral));
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--gray-100);
}

.panel-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--deep-teal), var(--caribbean-turquoise));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 77, 97, 0.2);
}

.panel-icon svg {
  width: 24px;
  height: 24px;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.panel-header p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Form Styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.required {
  color: var(--error);
  font-weight: 700;
}

.optional-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  margin-left: auto;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: var(--space-md);
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  pointer-events: none;
  transition: color 0.2s;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem var(--space-md);
  padding-left: 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: white;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--deep-teal);
  box-shadow: 0 0 0 4px rgba(0, 77, 97, 0.1);
}

.form-input:focus + .input-icon {
  color: var(--deep-teal);
}

.input-wrapper:has(.form-input:focus) .input-icon {
  color: var(--deep-teal);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  padding-left: var(--space-md);
}

/* Select Dropdown */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: var(--space-md);
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  pointer-events: none;
}

/* Field Hints & Errors */
.field-hint {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-style: italic;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--error);
  font-weight: 500;
  display: none;
}

.form-group.error .field-error {
  display: block;
}

.form-group.error .form-input {
  border-color: var(--error);
}

/* Info Card (Cruise Tip) */
.info-card {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 2px solid #FCD34D;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
}

.info-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D97706;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-content strong {
  display: block;
  color: #78350F;
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
}

.info-content p {
  color: #92400E;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Form Notice Error */
.form-notice-error {
  background: #FEE2E2;
  border: 2px solid #FCA5A5;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  color: #991B1B;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   RIGHT COLUMN - ORDER SUMMARY (STICKY)
   ======================================== */
.checkout-right {
  position: relative;
}

.summary-sticky {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Summary Card */
.summary-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--caribbean-turquoise));
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--gray-100);
}

.summary-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  border: 1px solid #86EFAC;
  border-radius: var(--radius-lg);
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
}

.secure-badge svg {
  width: 14px;
  height: 14px;
}

/* Service Visual Card */
.service-card {
  background: linear-gradient(135deg, var(--gray-50), white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  gap: var(--space-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--deep-teal), var(--caribbean-turquoise));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 77, 97, 0.3);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-info {
  flex: 1;
}

.service-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--coral), #FF8A6F);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.service-details {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Booking Summary Details */
.booking-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.summary-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.summary-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-teal);
  flex-shrink: 0;
}

.summary-icon svg {
  width: 18px;
  height: 18px;
}

.summary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
}

/* Dividers */
.summary-divider {
  height: 1px;
  background: var(--gray-200);
  margin: var(--space-lg) 0;
}

.summary-divider.thick {
  height: 2px;
  background: linear-gradient(90deg, var(--deep-teal), var(--caribbean-turquoise));
}

/* Price Breakdown */
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}

.price-label {
  color: var(--gray-700);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.info-icon {
  width: 14px;
  height: 14px;
  color: var(--gray-400);
  cursor: help;
}

.price-value {
  font-weight: 700;
  color: var(--gray-900);
}

/* Total Section */
.total-section {
  padding: var(--space-lg);
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.total-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-value {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.currency {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
}

.amount {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--deep-teal);
}

.total-note {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: right;
}

/* Payment Buttons */
.btn-payment,
.btn-complete {
  width: 100%;
  padding: 1.125rem var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-payment {
  background: linear-gradient(135deg, var(--deep-teal), #003544);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 77, 97, 0.3);
  margin-bottom: var(--space-md);
}

.btn-payment-cash {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #0f172a;
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.btn-payment:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 77, 97, 0.4);
}

.btn-payment-cash:hover:not(:disabled) {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  border-color: #94a3b8;
}

.btn-complete {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-complete:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.btn-payment .icon,
.btn-complete .icon {
  width: 20px;
  height: 20px;
}

.btn-payment:disabled,
.btn-complete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.payment-help {
  font-size: 0.8125rem;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.5;
}

.payment-notice {
  background: #FEF3C7;
  border: 2px solid #FCD34D;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  color: #92400E;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* ========================================
   GUARANTEES CARD
   ======================================== */
.guarantees-card {
  background: linear-gradient(135deg, var(--gray-50), white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}

.guarantees-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
}

.guarantee-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.guarantee-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.guarantee-icon {
  width: 24px;
  height: 24px;
  color: var(--success);
  flex-shrink: 0;
}

.guarantee-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-900);
  margin-bottom: 0.125rem;
}

.guarantee-item p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* ========================================
   SUCCESS PANEL
   ======================================== */
.success-panel {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-2xl);
  border: 2px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}

.success-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--success), #34D399, #6EE7B7);
}

.success-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success), #34D399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

.success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

.success-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.success-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
}

/* Booking Code Card */
.booking-code-card {
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border: 2px solid #BAE6FD);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.code-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.booking-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.code-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep-teal);
  letter-spacing: 2px;
}

.copy-btn {
  width: 40px;
  height: 40px;
  background: var(--deep-teal);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--caribbean-turquoise);
  transform: scale(1.1);
}

.copy-btn svg {
  width: 20px;
  height: 20px;
}

.code-hint {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* Success Steps */
.success-steps {
  margin-bottom: var(--space-2xl);
}

.success-steps h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
}

.next-steps-grid {
  display: grid;
  gap: var(--space-lg);
  text-align: left;
}

.next-step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--deep-teal), var(--caribbean-turquoise));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Success Actions */
.success-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.btn {
  padding: 1rem var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--deep-teal), #003544);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 77, 97, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 77, 97, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--deep-teal);
  border: 2px solid var(--deep-teal);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--deep-teal);
  color: white;
}

.btn-large {
  padding: 1.125rem var(--space-2xl);
  font-size: 1.0625rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-right {
    order: -1;
  }
  
  .summary-sticky {
    position: static;
  }
  
  .checkout-progress {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  .header-security {
    order: -1;
    width: 100%;
    justify-content: center;
  }
  
  .trust-badges {
    gap: var(--space-md);
  }
  
  .trust-divider {
    display: none;
  }
  
  .checkout-title-section h1 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkout-panel,
  .summary-card {
    padding: var(--space-lg);
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .checkout-main {
    padding: var(--space-lg) 0;
  }
  
  .checkout-title-section h1 {
    font-size: 1.75rem;
  }
  
  .panel-header {
    flex-direction: column;
    text-align: center;
  }
  
  .service-card {
    flex-direction: column;
    text-align: center;
  }
  
  .service-icon {
    margin: 0 auto;
  }
  
  .amount {
    font-size: 1.75rem;
  }
  
  .code-value {
    font-size: 1.5rem;
  }
}

/* ========================================
   FLOATING PAYPAL BUTTON (MOBILE)
   ======================================== */
.floating-pay-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-pay-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-floating-payment {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: 1.125rem var(--space-xl);
  background: linear-gradient(135deg, var(--deep-teal), #003544);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
              0 4px 12px rgba(0, 77, 97, 0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-floating-payment:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
              0 8px 16px rgba(0, 77, 97, 0.5);
}

.btn-floating-payment:active:not(:disabled) {
  transform: translateY(0);
}

.btn-floating-payment::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.btn-floating-payment:hover::before {
  left: 100%;
}

.btn-floating-payment .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-floating-payment span:not(.floating-price) {
  flex: 1;
  text-align: left;
}

.floating-price {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--gold), #FFED4E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.15);
  background-image: none;
  -webkit-text-fill-color: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.btn-floating-payment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hide floating button on desktop */
@media (min-width: 1025px) {
  .floating-pay-button {
    display: none !important;
  }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
  .floating-pay-button {
    padding: var(--space-sm);
  }
  
  .btn-floating-payment {
    padding: 1rem var(--space-lg);
    font-size: 0.9375rem;
  }
  
  .btn-floating-payment .icon {
    width: 18px;
    height: 18px;
  }
  
  .floating-price {
    font-size: 1.125rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Animation for safe area (iPhone notch, etc.) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floating-pay-button {
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  }
}
