/* ============================================================
   AUDI — LXD Portfolio  |  project.css
   Start a Project page styles
   ============================================================ */

/* ── Nav active state for this page ── */
.nav-active-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}

/* ── Page Header ── */
.sap-header {
  padding: 9rem 4rem 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.sap-header-inner {
  max-width: 900px;
}
.sap-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}
.sap-intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--white-dim);
  line-height: 1.8;
  max-width: 860px;
}

/* ── Body layout: form + sidebar ── */
.sap-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 4rem 6rem;
  background: var(--bg);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* ── Form wrap ── */
.sap-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

/* ── Steps track ── */
.steps-track {
  display: flex;
  align-items: flex-start;
  padding: 1.8rem 2rem 0;
  gap: 0;
  transition: opacity 0.4s;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-btn);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-3);
  border: 2px solid var(--border);
  color: var(--white-muted);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}
.step-item.active .step-circle {
  background: var(--bg-2);
  border-color: #2ecc71;
  color: #2ecc71;
}
.step-item.done .step-circle {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
}
.step-label {
  font-family: var(--font-btn);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-align: center;
  line-height: 1.4;
  max-width: 70px;
  padding-bottom: 0.8rem;
  transition: color 0.3s;
}
.step-item.active .step-label { color: #2ecc71; }
.step-item.done .step-label  { color: var(--white-dim); }

.step-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin-top: 17px; /* aligns with circle center */
  transition: background 0.4s;
}
.step-line.done { background: #2ecc71; }

/* ── Step panels ── */
.steps-content {
  padding: 1.8rem 2rem 2rem;
  min-height: 260px;
}
.step-panel {
  display: none;
  animation: fadeSlide 0.35s var(--ease) forwards;
}
.step-panel.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Fields ── */
.field-group {
  margin-bottom: 1.4rem;
}
.field-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.field-hint {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--white-dim);
}
.field-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s;
}
.field-input::placeholder { color: var(--white-muted); }
.field-input:focus { border-color: var(--accent); }

.field-textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s;
}
.field-textarea::placeholder { color: var(--white-muted); }
.field-textarea:focus { border-color: var(--accent); }

.field-file {
  width: 100%;
  background: var(--bg-3);
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--white-dim);
  cursor: pointer;
  transition: border-color 0.3s;
}
.field-file:hover { border-color: var(--accent); }

/* Checkbox / radio list */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: var(--bg-3);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.check-item input[type="radio"] { border-radius: 50%; }
.check-item input[type="checkbox"]:checked,
.check-item input[type="radio"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px; left: 2px;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}
.check-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
}
.check-item span {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white-dim);
}
.check-item:hover span { color: var(--white); }

.field-flexible {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--accent-soft);
  font-style: italic;
  margin-top: 0.8rem;
}

/* ── Step nav buttons ── */
.step-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  align-items: center;
}
.btn-prev {
  flex: 1;
  padding: 0.85rem 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white-dim);
  font-family: var(--font-btn);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn-prev:hover { background: var(--bg); color: var(--white); }

.btn-next {
  flex: 2;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-btn);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-next:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-submit {
  flex: 2;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-btn);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-submit:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ── Step 5 content ── */
.step5-content {
  padding: 0.5rem 0 1.5rem;
}
.step5-after {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.step5-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.step5-list li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.65;
}
.step5-note {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white-muted);
  font-style: italic;
}

/* ── Success ── */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}
.success-icon {
  width: 64px; height: 64px;
  background: #2ecc71;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 30px rgba(46,204,113,0.3);
  animation: popIn 0.5s var(--ease) forwards;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.success-msg {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 440px;
}

/* ── Sidebar ── */
.sap-sidebar {
  position: sticky;
  top: 6rem;
}
.sidebar-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0;
}
.sidebar-list li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}
.sidebar-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}
.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.sidebar-contact p {
  font-family: var(--font-btn);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 0.4rem;
}
.sidebar-email {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--accent-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.sidebar-email:hover { border-color: var(--accent-soft); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sap-header { padding: 7rem 1.5rem 2rem; }
  .sap-title  { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .sap-intro  { font-size: 0.9rem; }
  .sap-body   { grid-template-columns: 1fr; padding: 1.5rem 1.2rem 3.5rem; gap: 2rem; }
  .sap-sidebar { position: static; }
  .sidebar-title { font-size: 0.92rem; }
  .sidebar-list li { font-size: 0.82rem; }
}
@media (max-width: 600px) {
  .sap-header { padding: 6rem 1rem 1.5rem; }
  .steps-track { padding: 1rem 0.8rem 0; }
  .step-circle { width: 26px; height: 26px; font-size: 0.7rem; }
  .step-label  { font-size: 0.48rem; max-width: 50px; }
  .step-line   { margin-top: 12px; }
  .steps-content { padding: 1.2rem 1rem 1.4rem; min-height: 200px; }
  .field-label { font-size: 0.88rem; }
  .field-input, .field-textarea { font-size: 0.85rem; padding: 0.6rem 0.8rem; }
  .check-item span { font-size: 0.85rem; }
  .step-nav    { flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }
  .btn-prev, .btn-next, .btn-submit { flex: unset; width: 100%; padding: 0.75rem 1rem; font-size: 0.82rem; }
  .btn-prev    { order: 2; }
  .step5-list li { font-size: 0.88rem; }
  .success-title { font-size: 1.4rem; }
  .success-msg   { font-size: 0.88rem; }
}
@media (max-width: 400px) {
  .step-label { display: none; }
  .steps-track { padding: 0.8rem 0.5rem 0.5rem; }
}
