/* ============================================================
   APPLY PAGE STYLES — Fetching Fortunes × E Summit
   ============================================================ */

/* ── Page Layout ─────────────────────────────────────────── */
.apply-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.apply-main {
  flex: 1;
  padding: 100px 48px 72px;
}

/* ── Form Hero ───────────────────────────────────────────── */
.form-hero {
  max-width: 900px;
  margin: 0 auto 56px;
}

.form-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.form-hero-left .headline { margin-top: 14px; }

.form-hero-right {
  padding-bottom: 8px;
}

.progress-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--creme);
  opacity: 0.45;
  margin-bottom: 10px;
}

.progress-bar-wrap {
  height: 3px;
  background: var(--tan-15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tan), var(--org));
  border-radius: 2px;
  transition: width 0.6s ease;
  width: 33%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.progress-step-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--creme);
  opacity: 0.3;
  transition: color 0.3s, opacity 0.3s;
}
.progress-step-label.active { color: var(--tan); opacity: 1; }

/* ── Form Container ──────────────────────────────────────── */
.form-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-wrap {
  background: var(--blue2);
  border: 1px solid var(--tan-15);
  border-radius: 6px;
  overflow: hidden;
}

/* ── Form Sections ───────────────────────────────────────── */
.form-section {
  padding: 44px 52px;
  border-bottom: 1px solid var(--tan-10);
}
.form-section:last-child { border-bottom: none; }

.form-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.section-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  font-weight: 300;
  color: var(--tan);
  line-height: 1;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Field Grid ──────────────────────────────────────────── */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field-full { grid-column: 1 / -1; }

/* ── Field ───────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme);
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--org);
  opacity: 0.65;
  font-style: italic;
}

/* ── Inputs ──────────────────────────────────────────────── */
.input,
.select-input,
.textarea-input {
  width: 100%;
  background: rgba(13,23,40,0.65);
  border: 1px solid var(--tan-15);
  border-radius: 3px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
  -webkit-appearance: none;
}

.input::placeholder,
.textarea-input::placeholder { color: rgba(249,197,183,0.22); }

.input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: var(--tan);
  box-shadow: 0 0 0 3px rgba(241,93,12,0.12), 0 0 0 1px var(--tan);
}

.select-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F15D0C' stroke-width='2' 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 14px center;
  padding-right: 40px;
}
.select-input option { background: #111F3A; }

.textarea-input {
  resize: none;
  line-height: 1.65;
  min-height: 100px;
}

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  font-weight: 300;
  color: var(--creme);
  opacity: 0.28;
  pointer-events: none;
}
.input-icon-wrap .input { padding-left: 44px; }

/* Input with suffix */
.input-char-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--creme);
  opacity: 0.3;
}

/* ── Stage Toggle ────────────────────────────────────────── */
.stage-group {
  display: flex;
  background: rgba(13,23,40,0.65);
  border: 1px solid var(--tan-15);
  border-radius: 3px;
  padding: 4px;
  gap: 4px;
  height: 48px;
}

.stage-btn {
  flex: 1;
  border: none;
  background: none;
  color: var(--creme);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  opacity: 0.38;
}
.stage-btn:hover { opacity: 0.7; }
.stage-btn.active {
  background: var(--tan);
  color: var(--white);
  opacity: 1;
}

/* ── Upload Area ─────────────────────────────────────────── */
.upload-area {
  border: 2px dashed rgba(241,93,12,0.22);
  border-radius: 4px;
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s;
  background: rgba(13,23,40,0.4);
  position: relative;
}
.upload-area:hover {
  border-color: rgba(241,93,12,0.55);
  background: rgba(241,93,12,0.04);
}
.upload-area input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 42px;
  font-weight: 200;
  color: var(--tan);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.upload-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--creme);
  opacity: 0.6;
  line-height: 1.5;
}
.upload-text strong { color: var(--tan); font-weight: 600; cursor: pointer; }
.upload-meta {
  font-size: 11px;
  color: var(--creme);
  opacity: 0.28;
  margin-top: 6px;
}

/* Upload success state */
.upload-area.uploaded {
  border-color: var(--tan);
  background: rgba(241,93,12,0.06);
}
.upload-area.uploaded .upload-icon { color: var(--org); }

/* ── Sector Tags (multi-select) ──────────────────────────── */
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sector-tag {
  padding: 8px 18px;
  background: rgba(13,23,40,0.65);
  border: 1px solid var(--tan-15);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--creme);
  opacity: 0.55;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.sector-tag:hover { border-color: var(--tan-40); opacity: 0.85; color: var(--white); }
.sector-tag.selected {
  background: var(--tan);
  border-color: var(--tan);
  color: var(--white);
  opacity: 1;
}

/* ── Submit Area ─────────────────────────────────────────── */
.form-submit-area {
  padding: 44px 52px;
  background: rgba(13,23,40,0.45);
  border-top: 1px solid var(--tan-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.submit-note {
  font-size: 12px;
  color: var(--creme);
  opacity: 0.32;
  text-align: center;
  max-width: 440px;
  line-height: 1.65;
}

.btn-submit {
  width: 100%;
  max-width: 440px;
  height: 60px;
  background: var(--tan);
  border: none;
  border-radius: 3px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  box-shadow: 0 8px 32px rgba(241,93,12,0.36);
  animation: borderPulse 3.5s ease-in-out infinite;
}
.btn-submit:hover {
  background: var(--org);
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(241,93,12,0.52);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  font-weight: 300;
}

/* ── Sidebar Info ─────────────────────────────────────────── */
.form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--blue2);
  border: 1px solid var(--tan-15);
  border-radius: 6px;
  padding: 28px 28px;
}

.sidebar-card-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 16px;
  display: block;
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--creme);
  opacity: 0.72;
  line-height: 1.5;
}

.sidebar-card li::before {
  content: '✦';
  color: var(--tan);
  font-size: 9px;
  padding-top: 3px;
  flex-shrink: 0;
}

.prize-mini {
  background: linear-gradient(135deg, var(--tan) 0%, var(--org) 100%);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
}
.prize-mini-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 6px;
}
.prize-mini-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

/* ── Back link ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--creme);
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s;
}
.back-link:hover { opacity: 1; color: var(--tan); }
.back-link .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  font-weight: 300;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .apply-main { padding: 88px 24px 48px; }
  .form-section { padding: 32px 24px; }
  .form-submit-area { padding: 32px 24px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-hero-grid { grid-template-columns: 1fr; gap: 28px; }
}
