/* ── Application form styles ── */

.app-hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1rem;
  flex: 1;
}

.app-card {
  width: 100%;
  max-width: 760px;
  text-align: left;
  padding: 0 0 2.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.app-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--olive) 0%, var(--tan) 50%, var(--mint) 100%);
  margin-bottom: 0;
}

.app-card-body {
  padding: 2.5rem 2.5rem 0;
}

@media (max-width: 540px) {
  .app-card-body { padding: 1.5rem 1rem 0; }
}

/* Intro block */
.app-intro { margin-bottom: 2rem; }
.app-intro > p { color: #4a5568; line-height: 1.65; margin-bottom: 1rem; }

.info-box {
  background: #f0f8f4;
  border-left: 3px solid var(--mint);
  border-radius: 0 6px 6px 0;
  padding: .9rem 1.1rem;
  margin-bottom: .75rem;
  font-size: .9rem;
  color: #4a5568;
  line-height: 1.6;
}
.info-box ul { padding-left: 1.25rem; margin-top: .4rem; }
.info-box li { margin-bottom: .25rem; }

/* Sections */
.form-section {
  border-top: 1.5px solid #e2e8f0;
  padding-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.form-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Fields */
.field { margin-bottom: 1rem; }

.field label,
label.radio-label,
label.check-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: .35rem;
  text-align: left;
}

.field-hint {
  font-size: .8rem;
  color: #718096;
  margin-bottom: .5rem;
  font-weight: 400;
}
.field-hint a { color: var(--blue); }

.req { color: #c53030; font-weight: 700; }

.optional { color: #718096; font-weight: 400; font-size: .85rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea {
  width: 100%;
  padding: .55rem .75rem;
  border: 1.5px solid #cbd5e0;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  color: #1a202c;
  background: #fff;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus { border-color: var(--blue); }

textarea { resize: vertical; }

/* Two-column row */
.field-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .field-row.two-col { grid-template-columns: 1fr; }
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding-top: .1rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 400 !important;
  cursor: pointer;
}

.radio-label input[type="radio"] { width: auto; margin: 0; }

/* Expense table */
.expense-table {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: .75rem;
}

.expense-header,
.expense-row,
.expense-total-row {
  display: grid;
  grid-template-columns: 1fr 130px 36px;
  gap: 0;
}

.expense-header {
  background: #f7fafc;
  padding: .5rem .75rem;
  font-size: .8rem;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1.5px solid #e2e8f0;
}

.expense-header span,
.expense-total-row span {
  display: flex;
  align-items: center;
}

.expense-row {
  border-bottom: 1px solid #e2e8f0;
}
.expense-row:last-child { border-bottom: none; }

.expense-row input {
  border: none;
  border-radius: 0;
  border-right: 1px solid #e2e8f0;
  padding: .55rem .75rem;
  font-size: .9rem;
}
.expense-row input:last-of-type { border-right: none; }
.expense-row input:focus { border-color: var(--blue); outline: none; z-index: 1; }

.expense-total-row {
  background: #f7fafc;
  padding: .55rem .75rem;
  border-top: 1.5px solid #e2e8f0;
  font-weight: 700;
  font-size: .95rem;
  color: #2d3748;
}

#expense-total { font-variant-numeric: tabular-nums; }

.remove-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  line-height: 1;
  transition: color .15s;
}
.remove-row:hover { color: #c53030; background: none; }

/* Secondary button */
.btn-secondary {
  background: none;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-secondary:hover { background: #ebf4ff; }

/* Certification */
.certification p { color: #4a5568; margin-bottom: .75rem; font-size: .9rem; }

.cert-items { display: flex; flex-direction: column; gap: .65rem; margin-bottom: .5rem; }

.check-label {
  display: flex !important;
  align-items: flex-start;
  gap: .6rem;
  font-weight: 400 !important;
  cursor: pointer;
  font-size: .9rem;
  color: #2d3748;
}
.check-label input[type="checkbox"] { width: auto; margin-top: .15rem; flex-shrink: 0; }
.check-label span { line-height: 1.5; }

.sig-row { margin-top: 1.25rem; }

.signature-input { font-style: italic; }

/* Submit row */
.submit-row {
  border-top: 1.5px solid #e2e8f0;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}

.btn-submit {
  padding: .75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--olive-dark); }
.btn-submit:disabled { background: #a0aec0; cursor: not-allowed; }

.message { font-size: .9rem; min-height: 1.25rem; text-align: right; }
.message.success { color: #276749; }
.message.error   { color: #c53030; }
