* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  color: #777;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #fff;
  color: #444;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.site-header {
  width: 100%;
  background: #fff;
  padding: 20px 50px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px; /* spacing between logo/title + tagline */
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-text {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 26px;
  color: #ffc800;
}

.tagline {
  font-size: 14px;
  color: #ffc800;
  margin-left: 68px; /* aligns with the SCALE-UP text, not the logo */
  margin-top: -28px; /* adjust to match screenshot spacing */
  letter-spacing: 0.5px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.top-nav a {
  color: #777;
  text-decoration: none;
  margin: 0 5px;
  font-size: 16px;
}

.pipe {
  color: #ccc;
  margin: 0 5px;
}

.error-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #ffc800;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.error-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  color: white;
}

.error-popup.hidden {
  display: none;
}
#error-message {
  color: white !important;
}

/* Progress Bar */
.progress-area {
  margin-top: 10px;
  width: 100%;
}

.progress-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pill {
  width: 120px;
  height: 8px;
  background: #fff;
  border: 1px solid #ffc800;
  border-radius: 3px;
}

.pill.active {
  background: #ffc800;
}

.label {
  font-size: 12px;
  color: #777;
}

/* Form */
.form-container {
  padding: 50px 30px;
  height: 700px;
  width: 730px;
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 38px;
  font-weight: 700;
  color: #777;
}

form {
  text-align: left;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  color: #777;
}

input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 14px;
  color: #777;
}

input:focus,
select:focus {
  outline: none;
  border-color: #ffc800;
}

/* Button */
.btn {
  display: block;
  width: 150px;
  margin: 20px auto 0;
  padding: 10px;
  background: none;
  border: 2px solid #ffc800;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: #777;
  text-align: center;
}

.btn:hover {
  background: #ffc800;
  color: #fff;
}

/* Prevent checkboxes from looking like text fields */
/* Style the confirmation box like other input bars */
.confirm-box {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  background: #fff;
}

/* Keep the checkbox inline */
.confirm-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.confirm-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.confirmation-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

/* Add breathing room between progress bar and form */
.progress-area {
  margin-bottom: 30px; /* pushes forms downward */
}

/* Add space between form fields */
.form-group {
  margin-bottom: 20px; /* space between each field bar */
}

/* For rows like date-of-birth or 3-column select fields */
.form-row {
  gap: 15px; /* adds spacing between inputs in the same row */
  margin-bottom: 20px; /* also add some bottom spacing */
}

/* Optional: make forms look less cramped overall */
.form-container {
  margin-top: 20px; /* space above each step */
}

/* Space between progress bar and form */
.progress-area {
  margin-bottom: 40px; /* pushes forms downward */
}

/* Universal spacing for all form fields */
.form-group {
  margin-bottom: 25px; /* space below every input/select/file bar */
}

/* For rows that contain multiple inputs (like Date of Birth, Submission Date) */
.form-row {
  display: flex;
  gap: 20px; /* space between items in the same row */
  margin-bottom: 25px; /* space below the row */
}

/* Ensure selects and inputs inside rows expand evenly */
.form-row .form-group {
  flex: 1;
  margin-bottom: 0; /* prevent double-spacing inside row */
}

/* Add some breathing room around each form step */
.form-container {
  margin-top: 20px;
}

input[type="checkbox"] {
  appearance: none; /* remove default browser style */
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffd700; /* yellow border */
  border-radius: 4px; /* optional rounded corners */
  background-color: #fff; /* white background by default */
  cursor: pointer;
  position: relative;
}

/* When checked, make box yellow */
input[type="checkbox"]:checked {
  background-color: #ffd700; /* yellow fill */
  border-color: #ffd700;
}

/* White checkmark inside */
input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff; /* white checkmark */
  font-size: 14px;
  position: absolute;
  top: 0;
  left: 3px;
}

#final-screen h2 {
  font-size: 4.5rem;
  font-weight: 700;
  color: #666;
  text-align: center;
  margin-top: 180px;
  line-height: 1.5;
}

#final-screen p {
  font-size: 25px;
  text-align: center;
  color: #777;
  font-family: Arial, sans-serif;
}

.iti {
  width: 100%;
  font-size: 14px;
}
.iti input {
  width: 100% !important;
  font-size: 14px;
}

.form-group textarea {
  width: 100%;
  resize: vertical;
  min-height: 45px;
  max-height: 120px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-container-final {
  margin-top: 20px;
  max-width: 100%;
  width: 100%;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px; /* adjust as needed */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-size: small;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.footer-links span {
  color: #888;
}

.terms-container {
  margin-top: 5px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.terms-label {
  margin-right: 10px;
  font-size: 15px;
  color: #737373;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* ✅ Transparent background, yellow border, yellow checkmark, real small size */
.terms-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  inline-size: 34px;
  block-size: 32px;
  border: 1.5px solid #f7b130; /* yellow border */
  border-radius: 2px;
  background-color: transparent;
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin: 0;
  vertical-align: middle;
  transform: scale(0.45); /* ✅ shrinks visual box closer to native size */
  transition: all 0.2s ease;
}

.terms-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0px;
  width: 8px;
  height: 20px;
  border: solid #f7b130; /* yellow checkmark */
  border-width: 0 4.5px 4.5px 0;
  transform: rotate(45deg);
}

.terms-label a {
  color: #f7b130;
  text-decoration: none;
}

.terms-label a:hover {
  text-decoration: underline;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 25px; /* ⬅️ increased from 25px to 40px for more breathing room */ /* slightly rounder corners */
  width: 100%;
  max-width: 850px;
  max-height: 75vh; /* a bit taller */
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* optional: makes modal stand out */
}

.terms-text {
  height: 400px;
  overflow-y: auto;
  padding: 20px 25px; /* ⬅️ more padding inside the scrollable text area */
  margin-bottom: 20px; /* extra space before the Agree button */
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa; /* optional soft background */
  line-height: 2.6; /* improve readability */
}

.modal-content h2 {
  margin-bottom: 25px;
  color: #737373;
  text-align: center;
}

.terms-text p {
  max-width: 95ch;
  margin-bottom: 10px;
  line-height: 1.4; /* tighter line spacing */
  color: #555;
  text-align: left; /* makes the text span full width neatly */
  word-spacing: 1px; /* balances spacing between words */
}

.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #737373;
  cursor: pointer;
}

#agreeBtn {
  background-color: #ffcc00;
  color: #e9e9e9;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: not-allowed;
  font-size: 14px;
  transition: 0.3s;
  width: 150px;
}

#agreeBtn.enabled {
  cursor: pointer;
  background-color: #f7b130;
}

/* Hover effect when enabled */
#agreeBtn.enabled:hover {
  background-color: white;
  color: #f7b130;
  border: 0.1px solid #f7b130;
}

.modal-content {
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center; /* center children horizontally */
}

#agreeBtn {
  margin-top: 15px; /* optional spacing above button */
}

/* ============================================================
   📌 TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .site-header {
    padding: 15px 30px;
  }

  .brand-text {
    font-size: 22px;
  }

  .tagline {
    font-size: 12px;
    margin-left: 68px; /* align with brand-line */
    margin-top: -28px; /* keeps tagline in same position */
  }

  .form-container {
    width: 90%;
    height: auto;
    padding: 40px 25px;
  }

  .form-container h2 {
    font-size: 32px;
  }

  .pill {
    width: 90px;
  }
}

/* ============================================================
   📱 UNIVERSAL MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 20px;
  }

  .brand-text {
    font-size: 19px;
  }

  .tagline {
    font-size: 12px;
    margin-left: 68px; /* keep aligned with brand-line */
    margin-top: -28px; /* fixed spacing */
  }

  .form-container {
    width: 95%;
    padding: 30px 20px;
    height: auto;
  }

  .form-container h2 {
    font-size: 26px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  input,
  select,
  textarea {
    font-size: 13px;
    padding: 8px;
  }

  .btn {
    width: 120px;
    padding: 8px;
    font-size: 13px;
  }

  .pill {
    width: 70px;
    height: 6px;
  }

  .terms-label {
    font-size: 13px;
    white-space: normal;
  }

  .terms-label input[type="checkbox"] {
    transform: scale(0.38);
  }

  .modal-content {
    width: 92%;
    padding: 20px;
    max-height: 80vh;
  }

  .terms-text {
    height: 250px;
    font-size: 13px;
    padding: 15px;
  }

  #agreeBtn {
    width: 130px;
    font-size: 12px;
  }

  #final-screen h2 {
    font-size: 2.5rem;
    margin-top: 100px;
  }

  #final-screen p {
    font-size: 18px;
  }

  footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff; /* adjust if your footer has color */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);;
  }

  /* Prevent content from being covered by footer */
  body {
    padding-bottom: 80px;
  }
}

/* ============================================================
   📌 SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .brand-text {
    font-size: 18px;
  }

  .tagline {
    font-size: 11px;
    margin-left: 68px; /* keeps fixed alignment with brand-line */
    margin-top: -28px;
  }

  .form-container {
    padding: 20px 15px;
  }

  .form-container h2 {
    font-size: 22px;
  }

  input,
  select,
  textarea {
    font-size: 12px;
    padding: 7px;
  }

  .btn {
    width: 110px;
    font-size: 12px;
  }

  .pill {
    width: 60px;
  }

  .modal-content {
    padding: 15px;
  }

  .terms-text {
    height: 220px;
    font-size: 12px;
  }
}

/* ============================================================
   📌 iPHONE-SPECIFIC
   ============================================================ */
@media (max-width: 430px) {
  .brand-text {
    font-size: 17px;
  }
  .tagline {
    font-size: 10px;
    margin-left: 68px;
    margin-top: -28px;
  }
}

@media (max-width: 390px) {
  .brand-text {
    font-size: 16px;
  }
  .btn {
    width: 100px;
  }
}
/* ============================================================
   📌 ANDROID-SPECIFIC
   ============================================================ */
@media (max-width: 412px) {
  .form-container h2 {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .brand-text {
    font-size: 15px;
  }
  .form-container {
    padding: 15px;
  }
  .btn {
    width: 95px;
    font-size: 11px;
  }
}
