/* =========================================================
   APPLY FORM STYLES
   Matches Quantum Executive design system
========================================================= */

/* ---- Section with white background for contrast ---- */
.apply-section {
  padding: clamp(60px, 10vh, 100px) 0;
  background-color: #ffffff;
}

/* ---- 2-Column Layout ---- */
.apply-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}

/* ---- LEFT COLUMN ---- */
.apply-left {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--s-6, 16px);
}

.apply-heading {
  font-family: var(--display, 'Sora', sans-serif);
  font-size: var(--fs-h2, clamp(28px, 4vw, 48px));
  font-weight: 700;
  color: var(--teal, #0d4a52);
  line-height: 1.2;
  margin: 0;
}

.apply-intro {
  font-size: var(--fs-lead, 18px);
  color: var(--ink-soft, #5a6b72);
  line-height: 1.5;
  margin: 0;
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--display, 'Sora', sans-serif);
  font-size: var(--fs-xs, 12px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal, #0d4a52);
  margin-bottom: 0;
}

/* ---- RIGHT COLUMN - Form Card ---- */
.apply-right {
  display: flex;
  justify-content: center;
}

.apply-form-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elev, #faf7f4);
  border: 1px solid var(--rule-soft, #e8dcd3);
  border-radius: 20px;
  padding: var(--s-12, 40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ---- Form Fields ---- */
.apply-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-3, 8px);
  margin-bottom: var(--s-8, 24px);
}

.apply-label {
  font-family: var(--display, 'Sora', sans-serif);
  font-size: var(--fs-base, 16px);
  font-weight: 600;
  color: var(--ink, #0f1f24);
}

.apply-required {
  color: #dc2626;
  margin-left: 2px;
}

.apply-helper {
  font-size: var(--fs-sm, 14px);
  color: var(--ink-faint, #8a9aa3);
  margin: 0;
}

/* ---- Inputs & Textareas ---- */
.apply-input,
.apply-textarea,
.apply-select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--body, 'Outfit', sans-serif);
  font-size: var(--fs-base, 16px);
  color: var(--ink, #0f1f24);
  background: var(--surface, #ffffff);
  border: 1px solid var(--rule-soft, #e8dcd3);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.apply-input::placeholder,
.apply-textarea::placeholder {
  color: var(--ink-faint, #8a9aa3);
}

.apply-input:focus,
.apply-textarea:focus,
.apply-select:focus {
  border-color: var(--teal, #0d4a52);
  box-shadow: 0 0 0 3px rgba(13, 74, 82, 0.1);
}

.apply-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ---- Select / Dropdown ---- */
.apply-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d4a52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
  cursor: pointer;
}

.apply-select option {
  font-family: var(--body, 'Outfit', sans-serif);
  font-size: var(--fs-base, 16px);
  color: var(--ink, #0f1f24);
  padding: 8px;
}

/* ---- Form Status ---- */
.apply-form-status {
  padding: 12px 20px;
  margin-bottom: var(--s-6, 16px);
  border-radius: 8px;
  font-size: var(--fs-sm, 14px);
  font-weight: 500;
}

.apply-form-status.info {
  background: rgba(13, 74, 82, 0.08);
  color: var(--teal, #0d4a52);
  border: 1px solid rgba(13, 74, 82, 0.15);
}

.apply-form-status.error {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .apply-layout {
    grid-template-columns: 1fr;
    gap: var(--s-8, 24px);
  }

  .apply-left {
    position: static;
    text-align: center;
    align-items: center;
  }

  .apply-right {
    justify-content: stretch;
  }

  .apply-form-card {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .apply-form-card {
    padding: var(--s-8, 24px);
  }

  .apply-input,
  .apply-textarea,
  .apply-select {
    padding: 12px 14px;
  }
}