/* =========================================
   hsrpebook.online — Global Styles
   ========================================= */

:root {
  --primary: #1a3c6e;
  --primary-dark: #122b52;
  --accent: #e8a020;
  --accent-dark: #c8880a;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #dde2ea;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,0.09);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

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

.btn-full { width: 100%; display: block; }

/* ── Navbar ── */
.navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.navbar-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .btn { padding: 8px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #274f8a 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Section ── */
section { padding: 70px 20px; }
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 15px;
}

/* ── Service Cards ── */
.services { background: var(--white); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--white); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.card .btn { font-size: 14px; padding: 9px 20px; }

/* ── How It Works ── */
.how-it-works { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── Reviews ── */
.reviews { background: var(--white); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stars { color: var(--accent); font-size: 18px; margin-bottom: 10px; }
.review-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; font-style: italic; }
.reviewer { font-weight: 600; font-size: 14px; color: var(--primary); }

/* ── Contact Section ── */
.contact-section { background: var(--primary); color: var(--white); text-align: center; padding: 60px 20px; }
.contact-section .section-title { color: var(--white); }
.contact-section .section-sub { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.contact-info { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.contact-info a { color: rgba(255,255,255,0.9); font-size: 15px; }
.contact-info a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* ── Form Page ── */
.form-page { min-height: 100vh; background: var(--bg); padding: 40px 20px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}
.form-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-card .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Step indicator */
.step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step-bar-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.step-bar-item::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-bar-item:last-child::after { display: none; }
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  transition: background 0.3s, color 0.3s;
}
.step-circle.active { background: var(--primary); color: var(--white); }
.step-circle.done { background: #22a06b; color: var(--white); }
.step-bar-item span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.step-bar-item.active span { color: var(--primary); font-weight: 700; }

/* Form fields */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
label .req { color: #e53e3e; margin-left: 2px; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input.error, select.error { border-color: #e53e3e; }
.field-error { font-size: 12px; color: #e53e3e; margin-top: 4px; display: none; }
.honeypot { display: none !important; }

/* ── Payment Section ── */
.payment-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}
.payment-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 15px;
}
.payment-summary table { width: 100%; border-collapse: collapse; }
.payment-summary td { padding: 6px 0; color: var(--text-muted); }
.payment-summary td:last-child { font-weight: 600; color: var(--text); text-align: right; }
.payment-summary .total-row td { font-size: 17px; color: var(--primary); font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #eee;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.qr-placeholder img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.upi-id { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.upi-id strong { color: var(--primary); }

/* ── Confirmation Page ── */
.confirm-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.confirm-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 40px; max-width: 500px; width: 100%; text-align: center; }
.confirm-icon { width: 72px; height: 72px; background: #e6f9f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.confirm-icon svg { width: 36px; height: 36px; }
.confirm-card h2 { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.confirm-card p { font-size: 15px; color: var(--text-muted); margin-bottom: 6px; }
.confirm-ref { font-size: 13px; color: var(--text-muted); margin: 20px 0; padding: 12px; background: var(--bg); border-radius: 8px; }
.confirm-ref strong { color: var(--primary); }

/* ── Alert ── */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; display: none; }
.alert-error { background: #fff0f0; border: 1px solid #fca5a5; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 16px; }
  .hero { padding: 56px 20px; }
  .contact-info { flex-direction: column; gap: 12px; }
}
