/* ============================================
   CSS Variables & Color System
   ============================================ */
:root {
  /* Main Brand Color - Kratos Red */
  --kratos-red: #dc2626;
  --kratos-red-light: #ef4444;
  --kratos-red-dark: #b91c1c;

  /* Service Category Colors */
  --color-cleaning: #06b6d4; /* Cyan */
  --color-painting: #3b82f6; /* Light blue */
  --color-moving: #f97316; /* Orange */
  --color-contracting: #f97316; /* Orange */
  --color-security: #dc2626; /* Red */
  --color-electrical: #eab308; /* Yellow */
  --color-hvac: #f59e0b; /* Amber/Orange-yellow blend */

  /* Neutral Colors */
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-border: #e5e7eb;
  --color-success: #10b981;

  /* Current Service Color (dynamically set) */
  --service-color: var(--kratos-red);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(
    135deg,
    var(--kratos-red) 0%,
    var(--kratos-red-dark) 100%
  );
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #ecf0f1;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--kratos-red),
    var(--kratos-red-light)
  );
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 20%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  flex: 1;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ecf0f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #7f8c8d;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: linear-gradient(
    135deg,
    var(--kratos-red),
    var(--kratos-red-light)
  );
  color: white;
}

.step.completed .step-number {
  background: var(--color-success);
  color: white;
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: #7f8c8d;
  text-align: center;
}

/* ============================================
   Booking Layout
   ============================================ */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  align-items: start;
}

.main-content {
  padding: 40px 0;
}

/* ============================================
   Booking Form
   ============================================ */
.booking-form {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 25px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.booking-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--kratos-red),
    var(--kratos-red-light),
    var(--kratos-red)
  );
  border-radius: 24px 24px 0 0;
}

.form-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.section-header {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--kratos-red),
    var(--kratos-red-light)
  );
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  margin-top: 15px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   Service Category Cards (Step 1)
   ============================================ */
.service-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.service-category-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 220px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
  z-index: 1;
}

.service-category-card:hover:not(.selected)::before {
  left: 100%;
}

.service-category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-category-card.selected {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-category-card.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--service-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
}

/* Service-specific colors */
.service-category-card[data-category="cleaning"] {
  border-top: 4px solid var(--color-cleaning);
}

.service-category-card[data-category="cleaning"]:hover,
.service-category-card[data-category="cleaning"].selected {
  border-color: var(--color-cleaning);
  background: linear-gradient(
    145deg,
    rgba(6, 182, 212, 0.05),
    rgba(6, 182, 212, 0.02)
  );
}

.service-category-card[data-category="painting"] {
  border-top: 4px solid var(--color-painting);
}

.service-category-card[data-category="painting"]:hover,
.service-category-card[data-category="painting"].selected {
  border-color: var(--color-painting);
  background: linear-gradient(
    145deg,
    rgba(59, 130, 246, 0.05),
    rgba(59, 130, 246, 0.02)
  );
}

.service-category-card[data-category="moving"] {
  border-top: 4px solid var(--color-moving);
}

.service-category-card[data-category="moving"]:hover,
.service-category-card[data-category="moving"].selected {
  border-color: var(--color-moving);
  background: linear-gradient(
    145deg,
    rgba(249, 115, 22, 0.05),
    rgba(249, 115, 22, 0.02)
  );
}

.service-category-card[data-category="contracting"] {
  border-top: 4px solid var(--color-contracting);
}

.service-category-card[data-category="contracting"]:hover,
.service-category-card[data-category="contracting"].selected {
  border-color: var(--color-contracting);
  background: linear-gradient(
    145deg,
    rgba(249, 115, 22, 0.05),
    rgba(249, 115, 22, 0.02)
  );
}

.service-category-card[data-category="security"] {
  border-top: 4px solid var(--color-security);
}

.service-category-card[data-category="security"]:hover,
.service-category-card[data-category="security"].selected {
  border-color: var(--color-security);
  background: linear-gradient(
    145deg,
    rgba(220, 38, 38, 0.05),
    rgba(220, 38, 38, 0.02)
  );
}

.service-category-card[data-category="electrical"] {
  border-top: 4px solid var(--color-electrical);
}

.service-category-card[data-category="electrical"]:hover,
.service-category-card[data-category="electrical"].selected {
  border-color: var(--color-electrical);
  background: linear-gradient(
    145deg,
    rgba(234, 179, 8, 0.05),
    rgba(234, 179, 8, 0.02)
  );
}

.service-category-card[data-category="hvac"] {
  border-top: 4px solid var(--color-hvac);
}

.service-category-card[data-category="hvac"]:hover,
.service-category-card[data-category="hvac"].selected {
  border-color: var(--color-hvac);
  background: linear-gradient(
    145deg,
    rgba(245, 158, 11, 0.05),
    rgba(245, 158, 11, 0.02)
  );
}

.category-icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.service-category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-category-card[data-category="cleaning"] .category-icon {
  color: var(--color-cleaning);
}

.service-category-card[data-category="painting"] .category-icon {
  color: var(--color-painting);
}

.service-category-card[data-category="moving"] .category-icon {
  color: var(--color-moving);
}

.service-category-card[data-category="contracting"] .category-icon {
  color: var(--color-contracting);
}

.service-category-card[data-category="security"] .category-icon {
  color: var(--color-security);
}

.service-category-card[data-category="electrical"] .category-icon {
  color: var(--color-electrical);
}

.service-category-card[data-category="hvac"] .category-icon {
  color: var(--color-hvac);
}

.service-category-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.2;
  word-wrap: break-word;
}

.service-category-card p {
  color: var(--color-text-light);
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   Service Packages (Step 2)
   ============================================ */
.service-packages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.service-package-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 280px;
  max-width: 100%;
}

.service-package-card:hover {
  border-color: var(--service-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-package-card.selected {
  border-color: var(--service-color);
  background: linear-gradient(
    145deg,
    rgba(220, 38, 38, 0.05),
    rgba(220, 38, 38, 0.02)
  );
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-package-card.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--service-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.service-package-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.service-package-card p {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.service-package-price {
  font-weight: 800;
  font-size: 24px;
  color: var(--service-color);
  margin-top: 15px;
}

/* ============================================
   Form Elements
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

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

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

.form-group label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  font-size: 14px;
}

.required {
  color: var(--kratos-red);
}

.form-group input,
.form-group textarea,
.form-select {
  padding: 18px 20px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--kratos-red);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1),
    0 4px 12px rgba(220, 38, 38, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover,
.form-select:hover {
  border-color: var(--kratos-red-light);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

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

.form-group.form-error input,
.form-group.form-error textarea,
.form-group.form-error .form-select {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15),
    inset 0 2px 4px rgba(231, 76, 60, 0.1);
  background: #fff6f5;
}

.error-note {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: #e74c3c;
  font-weight: 600;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
  padding: 18px 36px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--kratos-red),
    var(--kratos-red-light)
  );
  color: white;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4), 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #bdc3c7, #95a5a6);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  color: #5a6c7d;
  border: 2px solid #e1e8ed;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: linear-gradient(145deg, #e9ecef, #dee2e6);
  border-color: var(--kratos-red);
  color: var(--kratos-red);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid var(--color-border);
}

/* ============================================
   Deposit & Payment Section
   ============================================ */
.deposit-section {
  margin-top: 30px;
}

.deposit-notice {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #fff3cd;
  color: #856404;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border-left: 4px solid #ffc107;
}

.deposit-notice i {
  font-size: 24px;
  color: #ffc107;
  flex-shrink: 0;
}

.deposit-notice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.deposit-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.payment-form {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid #e1e8ed;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.payment-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--kratos-red),
    var(--kratos-red-light),
    var(--kratos-red)
  );
  border-radius: 20px 20px 0 0;
}

.payment-form h4 {
  color: var(--color-text);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

.stripe-payment-container {
  margin: 20px 0;
}

.stripe-payment-element {
  padding: 20px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px;
}

.stripe-payment-element:focus-within {
  border-color: var(--kratos-red);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1),
    0 4px 12px rgba(220, 38, 38, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

.stripe-errors {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
  min-height: 20px;
}

.stripe-errors:empty {
  display: none;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.terms-checkbox input[type="checkbox"] {
  margin: 0;
  margin-top: 2px;
}

.terms-checkbox label {
  font-size: 14px;
  color: var(--color-text-light);
}

.terms-checkbox a {
  color: var(--kratos-red);
  text-decoration: none;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

.security-badges {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 15px;
  background: #e8f5e8;
  border-radius: 10px;
  border-left: 4px solid var(--color-success);
}

.security-badges i {
  color: var(--color-success);
  font-size: 18px;
}

.security-badges span {
  color: var(--color-success);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   Booking Summary Sidebar
   ============================================ */
.booking-summary-sidebar {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.summary-header {
  padding: 25px;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--kratos-red),
    var(--kratos-red-light)
  );
  color: white;
}

.summary-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.summary-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.summary-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

.summary-content {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 15px;
}

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

.summary-label {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 14px;
}

.summary-value {
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
  font-size: 14px;
}

.summary-divider {
  height: 2px;
  background: var(--color-border);
  margin: 15px 0;
}

.summary-total {
  font-weight: 700;
  font-size: 18px;
  color: var(--kratos-red);
  border-top: 2px solid var(--color-border);
  padding-top: 15px;
  margin-top: 10px;
}

.summary-total .summary-value {
  font-size: 20px;
  color: var(--kratos-red);
}

.summary-note {
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 400;
  font-style: italic;
}

/* ============================================
   Confirmation Section
   ============================================ */
.confirmation-section {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 249, 250, 0.95)
  );
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirmation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--kratos-red),
    var(--kratos-red-light),
    var(--kratos-red)
  );
  border-radius: 24px 24px 0 0;
}

.success-icon {
  font-size: 80px;
  color: var(--color-success);
  margin-bottom: 30px;
}

.confirmation-content h2 {
  font-size: 36px;
  color: var(--color-text);
  margin-bottom: 20px;
}

.confirmation-content > p {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.confirmation-details {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  text-align: left;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.detail-item i {
  color: var(--kratos-red);
  width: 20px;
  text-align: center;
}

.support-info {
  background: #e8f4fd;
  border-radius: 15px;
  padding: 25px;
  border-left: 4px solid #3498db;
}

.support-info h4 {
  color: var(--color-text);
  margin-bottom: 10px;
}

.support-info p {
  color: var(--color-text-light);
  margin-bottom: 15px;
}

.contact-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
  color: var(--kratos-red);
}

/* ============================================
   Modal
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--kratos-red),
    var(--kratos-red-light)
  );
  color: white;
}

.modal-header h3 {
  margin: 0;
}

.close-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 30px;
  max-height: 400px;
  overflow-y: auto;
}

.modal-body h4 {
  color: var(--color-text);
  margin-bottom: 15px;
}

.modal-body p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-summary-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    margin-top: 30px;
  }

  .summary-toggle {
    display: flex;
  }

  .summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .summary-content.expanded {
    max-height: 2000px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 36px;
  }

  .page-subtitle {
    font-size: 18px;
  }

  .progress-steps {
    flex-wrap: wrap;
    gap: 10px;
  }

  .step-label {
    font-size: 10px;
  }

  .booking-form {
    padding: 30px 20px;
  }

  .section-header h2 {
    font-size: 24px;
    flex-direction: column;
    gap: 10px;
  }

  .service-categories {
    gap: 15px;
  }

  .service-category-card {
    width: 150px;
    height: 200px;
    padding: 20px 15px;
  }

  .service-category-card h3 {
    font-size: 18px;
  }

  .service-category-card p {
    font-size: 12px;
  }

  .service-packages {
    gap: 15px;
  }

  .service-package-card {
    width: 100%;
    max-width: 400px;
  }

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

  .form-navigation {
    flex-direction: column;
    gap: 15px;
  }

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

  .confirmation-section {
    padding: 40px 20px;
  }

  .confirmation-content h2 {
    font-size: 28px;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .booking-form {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .service-category-card {
    width: 140px;
    height: 180px;
    padding: 20px 15px;
  }

  .service-category-card h3 {
    font-size: 16px;
  }

  .service-category-card p {
    font-size: 11px;
  }

  .category-icon {
    font-size: 40px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .page-header h1 {
    font-size: 28px;
  }
}
