:root {
  --primary: #e85d32;
  --primary-light: #ff7a52;
  --secondary: #1a8a8a;
  --bg: #fefcf9;
  --card: #fff;
  --muted: #f5f5f5;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0,0,0,0.12);
  --input-height: 50px;
  --transition: 0.3s;
}

/* ================= BASE ================= */
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: #333;
}
.hero {
  background: linear-gradient(135deg,#1e3a5f,#12263f);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.15);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ================= STEPS ================= */
.steps {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
  margin: 1rem auto;
  max-width: 600px;
}
.steps span {
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  opacity: 0.4;
  font-weight: 600;
  transition: var(--transition);
}
.steps span.active {
  opacity: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow);
}

/* ================= BOOKING CARD ================= */
.booking .card {
  max-width: 600px;
  margin: auto;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.panel {
  display: none;
}
.panel.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from {opacity:0; transform:translateY(20px);}
  to {opacity:1; transform:translateY(0);}
}

/* ================= INPUTS ================= */
input, select, textarea {
  width: 100%;
  height: var(--input-height);
  border-radius: var(--radius);
  border: 1px solid #ccc;
  padding: 0 1rem;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(232,93,50,0.25);
}

/* ================= ROWS & ADDONS ================= */
.row, .addon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--muted);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  transition: var(--transition);
}
.row:hover, .addon:hover {
  background: #fff7f2;
}
.addon {
  grid-template-columns: auto 1fr auto;
}
.addon span {
  font-weight: 700;
  color: var(--primary);
}
.actions {
    margin-top: 10px;
}
/* ================= QTY BUTTONS ================= */
.qty button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}
.qty button:hover {
  transform: scale(1.1);
}

/* ================= PRICE DETAILS ================= */
.price-details {
  background: #f9fafc;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #eee;
}
.price-details li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.total-line {
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px dashed #ddd;
}

/* ================= PAYMENT ================= */
.payment-methods label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.payment-methods input[type=radio] {
  accent-color: var(--primary);
}
.payment-methods input:checked + label {
  border: 2px solid var(--primary);
  background: #fff;
}
.payment-card {
  background: linear-gradient(135deg,#1a2a3a,#0f1c2e);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.payment-card input {
  margin-bottom: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: none;
}

/* ================= BUTTONS ================= */
.btn {
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.primary {
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(232,93,50,0.3);
}
.primary:hover {
  transform: translateY(-3px);
}
.outline {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* ================= DONE ================= */
.done .success {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
  background: var(--primary);
  color: #fff;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){
  .booking .card {padding: 1.5rem;}
  .row, .addon, .payment-methods {flex-direction: column;align-items: stretch;}
  .actions {flex-direction: column;}
  .btn {width:100%;margin-top:10px;}
}
/* ================= INPUTS ================= */
input, select, textarea {
  width: 100%;
  height: 42px; /* smaller input height */
  border-radius: var(--radius);
  border: 1px solid #ccc;
  padding: 0 0.8rem;
  font-size: 0.95rem; /* slightly smaller font */
  outline: none;
  box-sizing: border-box;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(232,93,50,0.25);
}

/* ================= SELECT ================= */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2rem; /* add space for arrow */
  font-size: 0.9rem; /* smaller font */
  height: 36px; /* smaller select */
}

/* ================= RADIO BUTTONS ================= */
.payment-methods input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-right: 0.5rem;
}
.payment-methods label {
  font-size: 0.95rem; /* smaller font for labels */
  padding: 0.6rem 0.8rem;
}
/* SMALLER SELECT */
select {
  height: 36px;
  font-size: 0.9rem;
}
input#name{
  margin-bottom: 20px;
}
input#email{
  margin-bottom: 20px;

}
input#phone{
  margin-bottom: 20px;

}
input#date{
  margin-bottom: 20px;

}
/* INLINE RADIO BUTTONS */
.payment-methods label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
}
.payment-methods input[type="radio"] {
  width: 18px;
  height: 18px;
}
/* ================= SMALLER CHECKBOXES AND RADIOS ================= */
.payment-methods input[type="radio"],
.addon input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.payment-methods label,
.addon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

/* Reverse checkbox/add-on layout: text first, then input */
.addon {
  grid-template-columns: 1fr auto;
  text-align: left;
}

/* Radio button text inline with button */
.payment-methods label {
  cursor: pointer;
  gap: 0.5rem;
}

/* Optional: smaller padding for compact look */
.addon, .payment-methods label {
    margin-top: 10px;
    padding: 1rem 1rem;
    gap: 1rem;
    font-size: 0.95rem;
}
/* Make select box smaller */
select#passType {
  height: 35px;
  font-size: 0.95rem;
  padding: 0 0.5rem;
}
.payment-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  background: #f8f9ff;
  font-weight: 500;
}

.payment-status.success {
  background: #e7fff1;
  color: #0a7a3b;
}

.payment-status.error {
  background: #ffe7e7;
  color: #b30000;
}

.loader {
  width: 18px;
  height: 18px;
  border: 3px solid #ccc;
  border-top: 3px solid #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#cardDetails {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 20px auto;
  font-family: 'Poppins', sans-serif;
}

#cardDetails h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.card-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.card-field label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #666;
}

.card-field input {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

.card-field input:focus {
  border-color: #4f46e5; /* Elegant purple accent */
  box-shadow: 0 0 6px rgba(79,70,229,0.3);
}

.card-row {
  display: flex;
  gap: 10px;
}

#cardDetails,
#qrCode,
#paypal-button-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 20px auto;
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* Show animation */
#cardDetails.show,
#qrCode.show,
#paypal-button-container.show {
  opacity: 1;
  transform: translateY(0);
}

#cardDetails h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.card-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.card-field label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #666;
}

.card-field input {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.3s ease;
}

.card-field input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

.card-row {
  display: flex;
  gap: 10px;
}

#qrCode {
  text-align: center;
}

#qrContainer {
  margin: 15px auto;
}

#qrStatus {
  font-weight: 600;
  margin-top: 10px;
  color: #333;
}

.payment-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  padding: 15px;
  border-radius: 12px;
  margin-top: 15px;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
}

.payment-status.success {
  background: #e6ffed;
  color: #28a745;
  font-weight: 600;
  transform: scale(1.05);
}

#paypal-button-container {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.addons-panel h2 {
  font-family: 'Fredoka', sans-serif;
  color: #e85d32;
  margin-bottom: 10px;
}

.addons-panel p {
  font-family: 'Nunito', sans-serif;
  margin-bottom: 20px;
  color: #333;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.addon-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.addon-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.addon-card label h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #e85d32;
}

.addon-card label p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.addon-card label span {
  font-weight: 600;
  color: #1a8a8a;
}

@media (max-width: 768px) {

  .hero h1 {
    font-size: 2rem;
  }

  .card {
    padding: 18px;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .qty {
    align-self: flex-end;
  }

  .addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-row {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {

  .hero h1 {
    font-size: 1.6rem;
  }

  .steps span {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .addons-grid {
    grid-template-columns: 1fr;
  }
}
/* ============ FIXED BACK TO HOME (BOTTOM RIGHT) ============ */
.back-home-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff4d4d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.back-home-fixed:hover {
  background: #e63b3b;
  transform: translateY(-3px);
}
