/* ── Apply Page ───────────────────────────── */

/* ── Intro / Two-Column Layout ────────────── */
.apply-section { padding: 104px 0; background: var(--beige-50); }
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

/* ── Left: Job Info ───────────────────────── */
.apply-info-intro {
  font-size: 1rem; color: var(--grey);
  line-height: 1.8; margin: 8px 0 36px;
}

/* Qualifications panel */
.apply-qual-panel {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.apply-panel-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 16px;
}
.apply-panel-rule { height: 1px; background: var(--beige-200); margin-bottom: 16px; }

.apply-qual-list { list-style: none; padding: 0; margin: 0; }
.apply-qual-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 7px 0;
  font-size: 14px; color: var(--charcoal); line-height: 1.55;
  border-bottom: 1px solid var(--beige-100);
}
.apply-qual-list li:last-child { border-bottom: none; }
.apply-qdot {
  width: 7px; height: 7px; background: var(--coral);
  border-radius: 50%; flex-shrink: 0; margin-top: 6px;
}
.apply-qual-note { font-size: 12px; color: var(--grey); }

/* Roles panel */
.apply-roles-panel {
  background: var(--green-900);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}
.apply-roles-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral-light); margin-bottom: 14px;
}
.apply-roles-rule { height: 1px; background: rgba(255,255,255,0.12); margin-bottom: 14px; }

.apply-role-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.apply-role-row:last-child { border-bottom: none; }
.apply-role-name {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--white); font-weight: 500;
}
.apply-role-dot {
  width: 7px; height: 7px; background: var(--coral);
  border-radius: 50%; flex-shrink: 0;
}
.apply-role-loc { font-size: 13px; color: rgba(255,255,255,0.55); }

/* Chips */
.apply-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.apply-chip {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 7px 16px;
  border: 1.5px solid var(--beige-300);
  border-radius: var(--radius-xl);
  color: var(--charcoal); background: var(--white);
}
.apply-chip.highlight {
  border-color: var(--coral); color: var(--coral);
}

/* Pillars row */
.apply-pillars {
  display: flex; gap: 0;
  border: 1px solid var(--beige-200);
  border-radius: var(--radius-md);
  overflow: hidden; background: var(--white);
}
.apply-pillar {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--grey); padding: 16px 8px;
  border-right: 1px solid var(--beige-200);
}
.apply-pillar:last-child { border-right: none; }

/* ── Right: Application Form ──────────────── */
.apply-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--beige-200);
  position: sticky; top: 112px;
}

.apply-form-card h3 {
  font-size: 1.7rem; margin-bottom: 8px; color: var(--charcoal);
}
.apply-form-card .apply-form-sub {
  font-size: 0.95rem; color: var(--grey); line-height: 1.7; margin-bottom: 36px;
}

/* Form rows */
.form-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-field { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--charcoal);
  background: var(--beige-50);
  border: 1.5px solid var(--beige-200);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; -webkit-appearance: none; appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(45,155,111,0.12);
  background: var(--white);
}
.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,114,92,0.12);
}
.form-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-field select { cursor: pointer; }
.form-field select option { color: var(--charcoal); }

/* CV upload */
.cv-upload-zone {
  border: 2px dashed var(--beige-300);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--beige-50);
}
.cv-upload-zone:hover { border-color: var(--green-500); background: var(--white); }
.cv-upload-zone.has-file { border-color: var(--green-500); border-style: solid; }
.cv-upload-icon { font-size: 26px; margin-bottom: 6px; }
.cv-upload-text { font-size: 13px; color: var(--grey); }
.cv-upload-text strong { color: var(--charcoal); }
.cv-file-name { font-size: 14px; color: var(--green-700); font-weight: 600; }

/* Form note */
.apply-form-note {
  font-size: 12px; color: var(--grey); line-height: 1.65;
  margin-bottom: 24px;
}

/* Submit button */
.apply-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--coral);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700;
  border: none; border-radius: var(--radius-xl);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232,114,92,0.35);
}
.apply-submit-btn:hover {
  background: #D4614D;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,114,92,0.45);
}
.apply-submit-btn:active { transform: translateY(0); }

/* ── Success State ────────────────────────── */
.apply-success {
  display: none; text-align: center; padding: 24px 0;
}
.apply-success.show { display: block; }
.apply-success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green-100);
  border: 2px solid var(--green-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; color: var(--green-700);
}
.apply-success h3 {
  font-size: 1.8rem; margin-bottom: 12px; color: var(--charcoal);
}
.apply-success p { font-size: 1rem; color: var(--grey); line-height: 1.8; }

/* ── Now Hiring Banner (for careers.html) ─── */
.now-hiring-section { padding: 0 0 0; background: var(--beige-50); }
.now-hiring-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.now-hiring-banner::before {
  content: '';
  position: absolute; top: -80px; right: 120px;
  width: 300px; height: 300px;
  border: 2px solid rgba(232,114,92,0.18);
  border-radius: 50%; pointer-events: none;
}
.now-hiring-banner::after {
  content: '';
  position: absolute; top: -120px; right: 60px;
  width: 440px; height: 440px;
  border: 2px solid rgba(232,114,92,0.08);
  border-radius: 50%; pointer-events: none;
}
.now-hiring-text .section-label { color: var(--coral-light); }
.now-hiring-text h2 {
  font-size: clamp(1.8rem,3vw,2.4rem);
  color: var(--white); margin: 8px 0 16px;
}
.now-hiring-text p {
  font-size: 1rem; color: rgba(255,255,255,0.7);
  max-width: 480px; line-height: 1.8; margin-bottom: 28px;
}
.now-hiring-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.now-hiring-chip {
  font-size: 12px; font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  color: rgba(255,255,255,0.8);
}
.now-hiring-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; z-index: 1; }
.now-hiring-role-tag {
  background: rgba(232,114,92,0.15);
  border: 1px solid rgba(232,114,92,0.4);
  border-radius: var(--radius-md);
  padding: 16px 24px; text-align: center;
}
.now-hiring-role-tag .role-title { font-size: 0.85rem; font-weight: 600; color: var(--coral-light); letter-spacing: 0.08em; margin-bottom: 4px; }
.now-hiring-role-tag .role-name { font-size: 1.1rem; font-weight: 600; color: var(--white); }

/* ── Mobile ───────────────────────────────── */
@media(max-width:900px){
  .apply-section { padding: 64px 0; }
  .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .apply-form-card { position: static; padding: 36px 28px; }

  .now-hiring-banner { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .now-hiring-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

@media(max-width:560px){
  .apply-section { padding: 48px 0; }
  .apply-qual-panel { padding: 24px 20px; }
  .apply-form-card { padding: 28px 20px; border-radius: var(--radius-md); }
  .apply-form-card h3 { font-size: 1.4rem; }
  .form-two-col { grid-template-columns: 1fr; gap: 0; }
  .apply-pillars { flex-direction: column; }
  .apply-pillar { border-right: none; border-bottom: 1px solid var(--beige-200); padding: 12px 8px; }
  .apply-pillar:last-child { border-bottom: none; }

  .now-hiring-banner { padding: 32px 20px; border-radius: var(--radius-md); }
  .now-hiring-actions { flex-direction: column; align-items: stretch; }
  .now-hiring-actions .btn { width: 100%; justify-content: center; }
}
