/* Apply page — extends style.css */

.apply-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.apply-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}

.apply-hero p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Progress */
.apply-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 48px 0 0;
}

.ap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.ap-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 0px);
  height: 1px;
  background: var(--border);
}

.ap-step:not(:last-child).done::after,
.ap-step:not(:last-child).active::after {
  background: var(--accent);
}

.ap-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.ap-step.active .ap-dot {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,169,110,0.1);
}

.ap-step.done .ap-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.ap-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ap-step.active .ap-label { color: var(--accent); }
.ap-step.done .ap-label { color: var(--accent); }

.ap-spacer { width: 60px; height: 1px; background: var(--border); align-self: flex-start; margin-top: 18px; }
.ap-spacer.done { background: var(--accent); }

/* Form wrapper */
.apply-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* Panels */
.form-panel { display: none; }
.form-panel.active { display: block; }

.panel-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
  margin-top: 48px;
}

.panel-sub {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 36px;
}

/* Form fields */
.field-group {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.field-input:focus {
  border-color: var(--accent);
}

.field-input.is-error {
  border-color: #c0392b;
}

select.field-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select.field-input option { background: #1a1a1a; }

textarea.field-input {
  resize: vertical;
  min-height: 100px;
}

.field-error {
  display: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: #e87070;
  margin-top: 6px;
}

/* Nav logo */
.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}
@media (min-width: 640px) {
  .nav-logo img { height: 36px; }
}

/* Phone field with country code */
.phone-wrap {
  display: flex;
}
.phone-code {
  flex-shrink: 0;
  min-width: 110px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 14px 10px;
  padding-right: 26px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s;
}
.phone-code:focus { border-color: var(--accent); outline: none; }
.phone-code option { background: #1a1a1a; }
.phone-code.is-error { border-color: #c0392b; }
.phone-num {
  flex: 1;
  border-radius: 0 6px 6px 0 !important;
}

/* Pills (radio group) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-option {
  display: flex;
  align-items: center;
  gap: 0;
}

.pill-option input { display: none; }

.pill-option label {
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.15s;
  user-select: none;
}

.pill-option input:checked + label {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,169,110,0.08);
}

/* Checkboxes */
.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.check-option input { display: none; }

.check-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.check-option input:checked ~ .check-box {
  border-color: var(--accent);
  background: var(--accent);
}

.check-option input:checked ~ .check-box::after {
  content: '✓';
  font-size: 0.7rem;
  color: var(--bg);
  font-weight: 700;
}

.check-option span {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
}

/* Nav buttons */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.btn-back {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.btn-back:hover { color: var(--text); }

.btn-next {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-next:hover { background: var(--accent2); }

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Agreement */
.agreement-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 28px;
}

.agreement-box p {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Success screen */
.success-screen {
  display: none;
  text-align: center;
  padding: 80px 24px 120px;
  max-width: 560px;
  margin: 0 auto;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 32px;
  color: var(--accent);
}

.success-screen h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.success-screen p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Global error */
.global-error {
  display: none;
  padding: 14px 18px;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #e87070;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .apply-progress { gap: 0; }
  .ap-spacer { width: 32px; }
}
