/* ============================================================
   Applications page
   Shared pieces (.page-hero, .cta-strip, .btn, .eyebrow) come from style.css.
   ============================================================ */

/* ============================================================
   Section shell
   ============================================================ */
.ap-section { background: var(--white); }
.ap-section--alt { background: var(--off-white); padding: 88px 0; }

/* Top-aligned, since the online-applications description carries the Florida
   restriction and runs several lines longer than the download one. */
.ap-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 36px;
}
.ap-head-sub {
  color: var(--gray-600);
  font-size: 1.025rem;
  line-height: 1.75;
  margin: 0;
  padding-top: 6px;
}
.ap-head-sub a {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.ap-head-sub a:hover { text-decoration: underline; }

/* ============================================================
   Form cards
   ============================================================ */
.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.ap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--rl);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.ap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.ap-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-head);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #B97F14;
  background: #FFF3D6;
  border: 1px solid #F5D98B;
  padding: 4px 9px;
  border-radius: 20px;
}
.ap-badge--pdf {
  color: var(--gray-600);
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.ap-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(46,125,209,.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.ap-card h3 {
  font-family: var(--font-head);
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
  padding-right: 60px;
}
.ap-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.ap-card-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--ease);
}
.ap-card-action i { font-size: .72rem; }
.ap-card:hover .ap-card-action { gap: 14px; }

/* ============================================================
   On request band
   ============================================================ */
.ap-request {
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 58%, var(--blue) 100%);
  padding: 80px 0;
}
.ap-request-text { max-width: 760px; }
.ap-request-text h2 { color: var(--white); margin-bottom: 16px; }
.ap-request-text > p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 26px;
}

.ap-request-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
}
.ap-request-tags span {
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 7px 14px;
  border-radius: 20px;
}

.ap-request-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   What happens next
   ============================================================ */
.ap-next { background: var(--white); }
.ap-next-head { margin-bottom: 40px; }

.ap-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}
.ap-step {
  border-top: 3px solid var(--gray-200);
  padding-top: 22px;
  position: relative;
}
.ap-step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--accent);
}
.ap-step-num {
  display: block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.ap-step h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.ap-step p {
  font-size: .93rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.ap-next-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--off-white);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 16px 20px;
}
.ap-next-note > i { color: var(--accent); font-size: .85rem; flex-shrink: 0; margin-top: 3px; }
.ap-next-note p { font-size: .89rem; color: var(--gray-600); line-height: 1.65; margin: 0; }
.ap-next-note a { color: var(--accent); font-weight: 600; }
.ap-next-note a:hover { text-decoration: underline; }

/* ============================================================
   Request an application (the page's conversion form)
   The form itself (.ct-form and friends) is the shared component in
   style.css. Only this section's own two-column layout lives here.
   ============================================================ */
.ap-form-section { background: var(--white); }

.ap-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.ap-form-intro h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.ap-form-intro > p {
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 52ch;
}

.ap-form-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.ap-form-points li { display: flex; gap: 16px; align-items: flex-start; }
.ap-form-points > li > i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--accent);
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-form-points strong {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.ap-form-points span {
  display: block;
  font-size: .89rem;
  line-height: 1.68;
  color: var(--gray-600);
}
.ap-form-points a { color: var(--accent); font-weight: 600; }
.ap-form-points a:hover { text-decoration: underline; }

/* The form sits in a white section, so lift it off the page with a border and
   soft shadow. On contact.html the same box sits on an off-white panel instead. */
.ap-form-box {
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Disclaimer
   Legal small print, so it is deliberately quieter than the rest of the page:
   off-white band, smaller type, muted colour. It should be findable and
   readable, not compete with the application cards above it. The amber left
   border and icon mark it as a notice without the alarm of red.
   ============================================================ */
.ap-disclaimer {
  background: var(--off-white);
  border-top: 1px solid var(--gray-200);
  padding: 52px 0;
}

.ap-disclaimer-inner {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  max-width: 900px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid #C98A1B;
  border-radius: var(--r);
}

.ap-disclaimer-icon {
  flex-shrink: 0;
  color: #C98A1B;
  font-size: 1.15rem;
  line-height: 1;
  margin-top: .2em;
}

.ap-disclaimer-body h2 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.ap-disclaimer-body p {
  font-size: .875rem;
  line-height: 1.72;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.ap-disclaimer-body p:last-child { margin-bottom: 0; }
.ap-disclaimer-body strong { color: var(--navy); font-weight: 700; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .ap-form-grid { grid-template-columns: 1fr; gap: 40px; }
  .ap-form-intro > p { max-width: none; }
}

@media (max-width: 900px) {
  .ap-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

@media (max-width: 768px) {
  .ap-section--alt { padding: 60px 0; }
  .ap-request      { padding: 60px 0; }
  .ap-form-section { padding: 60px 0; }
  .ap-disclaimer   { padding: 40px 0; }
  .ap-disclaimer-inner { flex-direction: column; gap: 12px; padding: 22px 20px; }
}

@media (max-width: 520px) {
  .ap-request-actions { flex-direction: column; }
  .ap-request-actions .btn { width: 100%; justify-content: center; }
  .ap-card h3 { padding-right: 0; }
  .ap-badge { position: static; display: inline-block; margin-bottom: 14px; }
}
