:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg: #f4f7fb;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 14px;
}

body {
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
}

.a4mb-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a4mb-card {
  width: 100%;
  max-width: 900px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  padding: 32px;
}

.a4mb-header h1 {
  margin: 0;
  font-size: 28px;
}

.a4mb-header p {
  color: var(--muted);
}

.a4mb-progress {
  margin: 30px 0;
}

.a4mb-progress ul {
  display: flex;
  justify-content: space-between;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.a4mb-progress li.active {
  color: var(--primary);
  font-weight: 600;
}

.a4mb-step {
  display: none;
  animation: fadeUp 0.4s ease;
}

.a4mb-step h2 {
  margin-bottom: 20px;
}

.a4mb-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.a4mb-input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
}

.a4mb-time-grid {
  display: flex;
  gap: 10px;
}

.a4mb-time-slot {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: grey;
  cursor: pointer;
}

.a4mb-time-slot.selected {
  background: var(--primary);
  color: white;
}

.a4mb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.a4mb-card-option {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all .2s ease;
}

.a4mb-card-option:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.a4mb-card-option input {
  display: none;
}

.a4mb-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.a4mb-btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 26px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.a4mb-btn-primary:hover {
  background: var(--primary-dark);
}

.a4mb-btn-secondary {
  background: transparent;
  border: none;
  color: var(--muted);
}

.a4mb-subtitle {
  color: var(--muted);
  margin-bottom: 18px;
}

.a4mb-card-option {
  position: relative;
}

.a4mb-card-option h3 {
  margin: 0 0 6px;
}

.a4mb-card-option p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.a4mb-card-option input:checked + h3,
.a4mb-card-option input:checked ~ p {
  color: var(--primary);
}

.a4mb-card-option input:checked ~ .a4mb-badge {
  background: var(--primary);
  color: white;
}

.a4mb-card-option:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.a4mb-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
}

.a4mb-names {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.a4mb-person-field label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.a4mb-progress-list li {
  color: #94a3b8;
}

.a4mb-progress-list li.active {
  color: var(--primary);
  font-weight: 600;
}

.a4mb-progress-list li.completed {
  color: var(--primary);
  opacity: 0.7;
}


.a4mb-steps input[type="date"],.a4mb-steps input[type="number"], .a4mb-steps input[type="email"], .a4mb-steps input[type="number"], .a4mb-steps input[type="password"], .a4mb-steps input[type="search"], .a4mb-steps input[type="tel"], .a4mb-steps input[type="text"], .a4mb-steps input[type="url"], .a4mb-steps select, .a4mb-steps textarea, .woocommerce .quantity input.qty {
    color: black !important;
    background-color: white !important;
    border-color: none;
}

.a4mb-steps input[type="date"]:focus, .a4mb-steps input[type="email"]:focus, .a4mb-steps input[type="number"]:focus, .a4mb-steps input[type="password"]:focus, .a4mb-steps input[type="search"]:focus, .a4mb-steps input[type="tel"]:focus, .a4mb-steps input[type="text"]:focus, .a4mb-steps input[type="url"]:focus, .a4mb-steps select:focus, .a4mb-steps textarea:focus {
    color: black !important;
    background-color: white !important;
    border-color: none;
}

/*--- holiday booking flatpickr css start --- */
    .flatpickr-day.a4mb-holiday-day {
      background: repeating-linear-gradient(
        45deg,
        #f1f5f9,
        #f1f5f9 6px,
        #e2e8f0 6px,
        #e2e8f0 12px
      );
      color: #64748b;
      border-radius: 6px;
    }
    
    .flatpickr-day.a4mb-holiday-day:hover {
      background: #fff7ed;
      color: #ea580c;
      cursor: pointer;
}

/*--- holiday booking flatpickr css end --- */

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