/* =============================================
   TATKAL BOOKING FORM — style.css
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e8f5ee 0%, #f0f4ff 50%, #e8f5ee 100%);
  min-height: 100vh;
  padding: 30px 16px 60px;
  color: #1a1a1a;
}

/* ---------- PAGE WRAPPER ---------- */
.page-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- HEADER CARD ---------- */
.form-header {
  background: linear-gradient(135deg, #1a6b3a 0%, #0d3d20 60%, #145c30 100%);
  border-radius: 24px;
  padding: 28px 28px;
  margin-bottom: 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow:
    0 10px 40px rgba(26, 107, 58, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-header:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 50px rgba(26, 107, 58, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.18);
}

.train-icon {
  font-size: 48px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

.form-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  display: inline-block;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ---------- SECTION CARDS ---------- */
.section-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.07),
    0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.11),
    0 3px 8px rgba(0, 0, 0, 0.06);
}

.section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0f0f0;
}

/* ---------- FIELD ROWS ---------- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field-row.full {
  grid-template-columns: 1fr;
}

@media (max-width: 500px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- FIELDS ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.02em;
}

.required {
  color: #e05c3a;
  margin-left: 2px;
}

.field input,
.field select {
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #e8e8e8;
  background: #fafafa;
  color: #111;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
  outline: none;
}

.field input:hover,
.field select:hover {
  border-color: #b2dfc5;
  background: #f5fdf8;
  transform: translateY(-1px);
}

.field input:focus,
.field select:focus {
  border-color: #1a6b3a;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(26, 107, 58, 0.12),
    0 2px 8px rgba(26, 107, 58, 0.1);
  transform: translateY(-1px);
}

/* ---------- CLASS SELECTOR ---------- */
.class-selector {
  display: flex;
  gap: 12px;
}

.class-btn {
  flex: 1;
  padding: 14px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  background: #fafafa;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  user-select: none;
}

.class-btn:hover {
  border-color: #1a6b3a;
  color: #1a6b3a;
  background: #f0faf5;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 107, 58, 0.15);
}

.class-btn.selected {
  background: linear-gradient(135deg, #1a6b3a, #0d3d20);
  color: white;
  border-color: #1a6b3a;
  box-shadow: 0 6px 20px rgba(26, 107, 58, 0.35);
  transform: translateY(-2px);
}

.class-btn .charge {
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
  opacity: 0.8;
}

/* ---------- PRICE INFO BOX ---------- */
.price-info {
  background: linear-gradient(135deg, #f0faf5, #e6f7ee);
  border: 1.5px solid #b2dfc5;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(26, 107, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-info:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 107, 58, 0.14);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #1a6b3a;
  padding: 4px 0;
}

.price-row.header {
  font-weight: 700;
  font-size: 14.5px;
  color: #0d3d20;
  border-bottom: 1px solid #b2dfc5;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

/* ---------- REFUND NOTE ---------- */
.refund-note {
  background: linear-gradient(135deg, #fff8e6, #fff3d4);
  border: 1.5px solid #f5c842;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  color: #7a5800;
  line-height: 1.65;
  box-shadow: 0 2px 10px rgba(245, 200, 66, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.refund-note:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 200, 66, 0.28);
}

.refund-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.refund-note strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #5a3e00;
  margin-bottom: 4px;
}

/* ---------- SUBMIT BUTTON ---------- */
.submit-btn {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #25D366, #1aad52);
  color: white;
  border: none;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow:
    0 6px 24px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.submit-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1ebe5d, #158a40);
  transform: translateY(-3px);
  box-shadow:
    0 12px 36px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.submit-btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ---------- SUCCESS MESSAGE ---------- */
.success-msg {
  display: none;
  background: linear-gradient(135deg, #f0faf5, #e6f7ee);
  border: 1.5px solid #b2dfc5;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  color: #0d3d20;
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(26, 107, 58, 0.12);
  animation: slideIn 0.4s ease;
}

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

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin-top: 24px;
  padding-bottom: 10px;
  letter-spacing: 0.03em;
}

.footer span {
  color: #1a6b3a;
  font-weight: 600;
}
