/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Base ---------- */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

@media (max-width: 480px) {
  html { font-size: 19px; }
}

body {
  background: #f8f9fa;
  color: #333;
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  padding-top: 80px;
  transition: background 0.3s ease;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 999;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-brand {
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-brand i {
  margin-right: 8px;
  color: #f74f30;
}

.nav-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 10px 12px;
  display: inline-block;
}

.nav-menu li a:hover {
  color: #f74f30;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px; right: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .nav-menu.active { display: flex; }
}

/* ---------- Container ---------- */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  margin-bottom: 25px;
}

.header h1 {
  color: #111;
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.header p {
  color: #555;
  font-size: 1rem;
}

/* ---------- Form Card ---------- */
.form-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

.intro {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

/* ---------- Progress ---------- */
.progress-container { margin: 15px 0; }
.progress-bar {
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 10px;
  background: #f74f30;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-text {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #444;
  text-align: right;
}

/* ---------- Form ---------- */
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h2 {
  color: #111;
  margin-bottom: 0.75rem;
}
.form-group { margin-bottom: 1rem; }

label.white-text {
  color: #222;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1rem;
}

input, select {
  width: 100%;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input::placeholder, select::placeholder { color: #999; }

input:focus, select:focus {
  border-color: #f74f30;
  box-shadow: 0 0 0 3px rgba(247,79,48,0.15);
  outline: none;
}

/* ---------- Buttons ---------- */
.btn {
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
  transition: transform 0.02s ease, opacity 0.2s ease;
}

.btn:active { transform: translateY(1px); }
.btn-primary { background: #f74f30; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn:hover { opacity: 0.9; }

/* ---------- Checkbox ---------- */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: #f74f30;
}

/* ---------- Summary ---------- */
.summary-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.summary-box strong { color: #f74f30; }

/* ---------- Error & Info ---------- */
.error-message,
.warning-message,
.phone-format-hint,
.database-error {
  font-size: 0.95rem;
  margin-top: 4px;
}

.database-error {
  background: rgba(247,79,48,0.08);
  border: 1px solid rgba(247,79,48,0.35);
  color: #b43722;
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 15px;
  color: #777;
  font-size: 0.9rem;
}

/* ---------- Links ---------- */
a {
  color: #f74f30;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container { padding: 0 16px 40px; }
  .form-card { padding: 22px; }
  .btn { width: 100%; }
}

/* ---------- Utility ---------- */
.white-text { color: #222; }
