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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f0eded;
  min-height: 100vh;
}

.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ===== HEADER ===== */
.site-header {
  background: #140e0e;
  color: #fff;
  padding: 18px 24px;
  margin: 0 -16px 24px;
  text-align: center;
  border-bottom: 4px solid #e5383b;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #e5383b;
}
.tagline {
  margin-top: 5px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

/* ===== CARD ===== */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(20,14,14,.15);
  padding: 28px 32px;
  max-width: 760px;
  margin: 0 auto;
}
.card.wide { max-width: 1040px; }

/* ===== STEP INDICATOR ===== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #aaa;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid #ddd;
  white-space: nowrap;
}
.step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ddd;
  color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
}
.step.active {
  color: #e5383b;
  border-color: #e5383b;
  font-weight: bold;
}
.step.active span {
  background: #e5383b;
  color: #fff;
}
.step.done {
  color: #27ae60;
  border-color: #27ae60;
}
.step.done span {
  background: #27ae60;
  color: #fff;
}
.step-arrow {
  font-size: 20px;
  color: #ccc;
}

/* ===== BUTTONS ===== */
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
.btn-primary {
  padding: 11px 28px;
  background: #e5383b;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: #660708; }
.btn-primary:disabled { background: #c47a7b; cursor: not-allowed; }
.btn-secondary {
  padding: 11px 22px;
  background: #fff;
  color: #555;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-secondary:hover { background: #f5f5f5; }

/* ===== NOTICES ===== */
.notice {
  padding: 10px 14px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 13px;
}
.notice.success { background: #eafaf1; border: 1px solid #a9dfbf; color: #1e8449; }
.notice.warning { background: #fef2f2; border: 1px solid #e5383b; color: #660708; }

/* ===== FORM SECTIONS ===== */
.form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.form-section:last-of-type { border-bottom: none; }
.section-title {
  font-size: 15px;
  font-weight: bold;
  color: #660708;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-label {
  background: #fde8e8;
  color: #e5383b;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.form-grid {
  display: grid;
  gap: 12px 16px;
}
.form-grid.col3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.col4 { grid-template-columns: repeat(4, 1fr); }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-size: 11px;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.field input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  color: #222;
  width: 100%;
  transition: border-color .2s;
}
.field input:focus {
  outline: none;
  border-color: #e5383b;
  box-shadow: 0 0 0 3px rgba(229,56,59,.12);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .form-grid.col3,
  .form-grid.col4 { grid-template-columns: 1fr 1fr; }
  .steps { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .card { padding: 20px 16px; }
  .form-grid.col3,
  .form-grid.col4 { grid-template-columns: 1fr; }
}
