/* ===== Base ===== */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ===== Background ===== */
body {
  margin: 0;
  padding-bottom: 80px;
  background-image: url('/images/background.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Dark overlay over the background so the form stays readable */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

/* Push all real content above the overlay */
body > * {
  position: relative;
  z-index: 1;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* ===== Form card — glass effect ===== */
.card {
  border: none;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.card-header {
  border-radius: 1rem 1rem 0 0 !important;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
  padding: 1.25rem 1.5rem;
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ===== Section headings ===== */
.form-section-title {
  color: #0d6efd;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

/* ===== Form controls ===== */
.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 1.5px solid #dee2e6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.form-label {
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
}

/* ===== Validation ===== */
.input-validation-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5;
}

.text-danger.small {
  font-size: 0.78rem;
}

/* ===== Submit button ===== */
.btn-submit {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border: none;
  border-radius: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.4);
  background: linear-gradient(135deg, #3d8bfd 0%, #0d6efd 100%);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ===== Thank-you card ===== */
.card-thankyou {
  border: 2px solid rgba(25, 135, 84, 0.4);
}

.card-thankyou .check-icon {
  font-size: 4rem;
  line-height: 1;
  color: #198754;
}

/* ===== Footer ===== */
footer {
  color: rgba(255, 255, 255, 0.7) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}
