/* 🌐 General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #f9fbff, #eef3ff); /* clean white + blue tint */
  color: #111827;
  line-height: 1.6;
}

/* 🌟 Book Section */
.book-test-section {
  padding: 40px 20px;
  text-align: center;
  color: #1e3a8a;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(59,130,246,0.15);
  max-width: 900px;
  margin: 30px auto;
}

.book-test-section h1 {
  font-size: 30px;
  margin-bottom: 12px;
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.book-test-section p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #374151;
}

.book-test-section p.price {
  font-weight: 700;
  font-size: 20px;
  color: #2563eb;
  margin-bottom: 0;
}

/* 🔘 Buttons */
.button-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(37,99,235,0.25);
}

.info-button:hover {
  background: linear-gradient(135deg, #1e40af, #153eaa);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}

.info-button .icon {
  font-size: 18px;
}

/* 📑 Form */
form {
  max-width: 700px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #dbeafe;
  transition: all 0.3s ease;
}

form:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* ✏️ Input Fields */
form input,
form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  background: #f9fafb;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

form input:focus,
form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37,99,235,0.3);
  background: #ffffff;
  outline: none;
}

/* 🚀 Submit Button */
button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #1e40af, #153eaa);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37,99,235,0.35);
}

/* Progress Bar */
.progress-container {
  width: 90%;
  margin: 25px auto 10px;
}

.progressbar {
  counter-reset: step;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.progressbar li {
  position: relative;
  text-align: center;
  flex: 1;
  font-size: 12px;
  text-transform: uppercase;
  color: #60a5fa;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 32px;
  height: 32px;
  line-height: 32px;
  display: block;
  background: linear-gradient(135deg, #bfdbfe, #60a5fa);
  border: 2px solid #2563eb;
  border-radius: 50%;
  margin: 0 auto 8px auto;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
}

.progressbar li:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #bfdbfe, #60a5fa);
  top: 16px;
  left: -50%;
  z-index: -1;
}

.progressbar li:first-child:after {
  content: none;
}

/* Active Step */
.progressbar li.active {
  color: #1d4ed8;
}

.progressbar li.active:before {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2px solid #1e3a8a;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.9);
  animation: pulse 1.5s infinite;
}

.progressbar li.active + li:after {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

/* Glow Animation */
@keyframes pulse {
  0% { box-shadow: 0 0 6px rgba(29, 78, 216, 0.7); }
  50% { box-shadow: 0 0 14px rgba(29, 78, 216, 1); }
  100% { box-shadow: 0 0 6px rgba(29, 78, 216, 0.7); }
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(15px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Form Sections */
.form-section {
  margin-bottom: 25px;
}

.form-section h3 {
  margin-bottom: 14px;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 17px;
  border-left: 4px solid #3b82f6;
  padding-left: 6px;
}

.form-group {
  margin-bottom: 18px;
}

.inline-inputs {
  display: flex;
  gap: 10px;
}

.inline-inputs select {
  flex: 1;
}

.note {
  font-size: 12px;
  color: #6b7280;
}

/* ====== BUTTONS ====== */
button[type="submit"],
.next-btn, 
.prev-btn,
.pay-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.next-btn, .prev-btn {
  margin: 10px 6px 0;
}

.next-btn:hover,
.prev-btn:hover,
button[type="submit"]:hover,
.pay-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #153eaa);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.prev-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.prev-btn:hover {
  background: linear-gradient(135deg, #4b5563, #374151);
}

/* ====== RADIO BUTTONS ====== */
input[type="radio"] {
  position: absolute;
  opacity: 0;
}

input[type="radio"] + label {
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

input[type="radio"] + label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  transition: all 0.25s ease;
}

input[type="radio"]:checked + label::before {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
}

input[type="radio"]:checked + label::after {
  content: "✔";
  position: absolute;
  left: 2px;
  top: -1px;
  font-size: 13px;
  color: white;
}

/* ====== SUMMARY SECTION ====== */
.summary-section {
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #111827;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.08);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.summary-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1d4ed8;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 5px;
}

.summary-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.summary-box {
  background: #f9fafb;
  border: 1px solid #dbeafe;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.summary-section pre {
  background: #f3f4f6;
  color: #1f2937;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  overflow-x: auto;
}

/* ====== Responsive Layout ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 12px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

/* Media Queries */
@media (max-width: 768px) {
  .book-test-section h1 { font-size: 24px; }
  .book-test-section p { font-size: 14px; }
  form { padding: 20px; }
  .inline-inputs { flex-direction: column; }
}

@media (max-width: 480px) {
  .book-test-section h1 { font-size: 20px; }
  .book-test-section p { font-size: 13px; }
  form { padding: 15px; }
  button[type="submit"] { font-size: 16px; padding: 12px; }
}
