/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #5a5a5a;
  background: #000;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }

/* =========================================================
   FORM SECTION
   ========================================================= */
.form-section {
  position: relative;
  background-color: #d9dbdd;
  padding: 100px 0;
  overflow: hidden;
}
.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M40 0H0v40' fill='none' stroke='%23ffffff' stroke-width='1'/></svg>");
  background-repeat: repeat;
  background-position: top left;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.form-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
.form-section__intro {
  font-family: "Work Sans", sans-serif;
  font-size: 35px;
  font-weight: 500;
  line-height: 35px;
  letter-spacing: -1.65px;
  margin: 0.25em 0 0.25em 0;
  color: #1a1a1a;
}
.form-section__intro-highlight { color: #5a6b75; }

/* =========================================================
   FORM
   ========================================================= */
.form { width: 100%; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.form__row--single { grid-template-columns: 1fr; }
.form__group { display: flex; flex-direction: column; }
.form__label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.form__required { color: #e8746e; margin-left: 2px; font-weight: 400; }

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #cfd2d4;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__input::placeholder,
.form__textarea::placeholder { color: #9aa0a6; }
.form__input:focus,
.form__textarea:focus {
  border-color: #3a4a52;
  box-shadow: 0 0 0 3px rgba(58, 74, 82, 0.12);
}
.form__input--readonly,
.form__input[readonly] {
  background-color: #f0f2f3;
  color: #6b7280;
  cursor: not-allowed;
  border-color: #cfd2d4;
}
.form__input--readonly:focus,
.form__input[readonly]:focus {
  border-color: #cfd2d4;
  box-shadow: none;
}
.form__textarea { min-height: 120px; resize: vertical; font-family: inherit; }

/* Radio */
.form__radio-group { display: flex; gap: 60px; margin-top: 8px; }
.form__radio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: #1a1a1a;
  user-select: none;
}
.form__radio input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.form__radio-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #8a9196;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.form__radio input[type="radio"]:checked + .form__radio-mark {
  background: #7d878d;
  border-color: #7d878d;
}
.form__radio input[type="radio"]:checked + .form__radio-mark::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.form__radio input[type="radio"]:focus-visible + .form__radio-mark {
  box-shadow: 0 0 0 3px rgba(58, 74, 82, 0.25);
}

/* Checkbox GDPR */
.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 36px 0 32px 0;
  user-select: none;
}
.form__checkbox input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.form__checkbox-mark {
  width: 20px;
  height: 20px;
  border: 1.5px solid #1a1a1a;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.form__checkbox input[type="checkbox"]:checked + .form__checkbox-mark { background: #1a1a1a; }
.form__checkbox input[type="checkbox"]:checked + .form__checkbox-mark::after {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* reCAPTCHA */
.form__captcha { margin: 0 0 36px 0; }
.g-recaptcha { display: inline-block; }

/* Submit */
.form__submit {
  display: inline-block;
  padding: 18px 44px;
  background: #4a5358;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.1s ease;
}
.form__submit:hover { background: #353c40; }
.form__submit:active { transform: translateY(1px); }
.form__submit:focus-visible { outline: 3px solid rgba(58, 74, 82, 0.4); outline-offset: 2px; }

/* Error state */
.form__input.is-invalid,
.form__textarea.is-invalid {
  border-color: #e8746e;
  box-shadow: 0 0 0 3px rgba(232, 116, 110, 0.12);
}
.form__error { display: none; color: #c84a44; font-size: 0.85rem; margin-top: 6px; }
.form__error.is-visible { display: block; }
.form__error--general {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: #fdecea;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* =========================================================
   CONDITIONAL FORMS & EXPERIENTIAL PATHS
   ========================================================= */
.form__conditional { margin-top: 28px; }
.form__conditional[hidden] { display: none; }
.form__section-title {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 32px 0 20px;
}
.form__subtitle { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin: 28px 0 18px; }
.form__hint { font-size: 0.85rem; color: #6b6b6b; margin: 12px 0 0; }
.form__radio-group--vertical { flex-direction: column; gap: 14px; }

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 28px;
}
.experience-card { display: flex; flex-direction: column; }
.experience-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}
.experience-card__title { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; line-height: 1.3; }
.experience-card__text { font-size: 0.85rem; line-height: 1.55; color: #4a4a4a; margin: 0; }

/* =========================================================
   SUBMIT STATES
   ========================================================= */
.form__submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form__submit.is-loading { pointer-events: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .form-section { padding: 60px 0 80px; }
  .form-section__inner { padding: 0 28px; }
  .form-section__intro { font-size: 1.5rem; margin-bottom: 40px; }
  .form__row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .form__radio-group { flex-direction: column; gap: 16px; }
  .form__section-title { font-size: 1.25rem; }
  .experiences-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 420px) {
  .form-section__intro { font-size: 1.3rem; }
}
