/* Candidate identity details — presentation only, responsive and safe. */
.intake-card [data-abec-hide-legacy-phone="true"] {
  display: none !important;
}

.abec-profile-intake {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line, #d6e3f6);
  border-left: 4px solid var(--red, #e2231a);
  border-radius: .75rem;
  background: #f7faff;
}

.abec-profile-intake-header h2 {
  margin: 0 0 .45rem;
  color: var(--ink, #0b2f78);
  font-size: 1.05rem;
}

.abec-profile-intake-header p {
  margin: 0 0 .85rem;
  color: var(--muted, #536b93);
  line-height: 1.5;
}

.abec-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.abec-profile-field {
  display: grid;
  gap: .35rem;
}

.abec-profile-label {
  color: var(--ink, #0b2f78);
  font-weight: 650;
}

.abec-profile-field input:not([type="checkbox"]) {
  width: 100%;
  min-height: 2.7rem;
  box-sizing: border-box;
}

/* Keep the date on its own row and the two residence fields together. */
.abec-profile-date-field {
  grid-column: 1 / -1;
  max-width: calc(50% - .4rem);
}

.abec-profile-field.has-error input:not([type="checkbox"]) {
  border-color: var(--red, #e2231a);
}

.abec-profile-feedback {
  min-height: 1.1rem;
  color: #a51622;
  font-size: .82rem;
  line-height: 1.3;
}

.abec-profile-declaration {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-top: 1rem;
  color: var(--ink, #0b2f78);
  line-height: 1.45;
}

.abec-profile-declaration .abec-profile-feedback {
  grid-column: 2;
}

.abec-profile-error {
  margin: .7rem 0;
  padding: .7rem .8rem;
  border-radius: .5rem;
  color: #8d1c16;
  background: #fff0ef;
  font-weight: 650;
}

@media (max-width: 650px) {
  .abec-profile-intake {
    padding: .9rem;
  }

  .abec-profile-grid {
    grid-template-columns: 1fr;
  }

  .abec-profile-date-field {
    grid-column: auto;
    max-width: none;
  }
}
