/* ============================================================
   ZIDOSOFT — START PAGE
   Intake form + trust sidebar + success state.
   ============================================================ */

/* ---------- PAGE HEADER ---------- */
.start-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
}

.start-hero-title {
  margin: var(--space-5) 0 var(--space-5);
  max-width: 800px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.start-hero-sub {
  max-width: 640px;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .start-hero { padding: 140px 0 48px; }
}

/* ---------- BODY LAYOUT ---------- */
.start-body {
  padding: var(--space-10) 0;
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 80px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .start-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ---------- FORM ---------- */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-9);
}

.form-section:last-of-type {
  margin-bottom: var(--space-6);
}

.form-legend {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  padding: 0 0 var(--space-5);
  margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  width: 100%;
}

.form-legend .mono {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Form field overrides — scoped to #intake-form for bigger, more substantial fields */
#intake-form .form-group {
  margin-bottom: var(--space-6);
}

#intake-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

#intake-form .form-input,
#intake-form .form-select,
#intake-form .form-textarea {
  width: 100%;
  padding: 16px 18px;
  font-size: 1rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

#intake-form .form-input::placeholder,
#intake-form .form-textarea::placeholder {
  color: var(--text-dim);
}

#intake-form .form-input:hover,
#intake-form .form-select:hover,
#intake-form .form-textarea:hover {
  border-color: var(--line-strong);
}

#intake-form .form-input:focus,
#intake-form .form-select:focus,
#intake-form .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

#intake-form .form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

#intake-form select.form-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
  cursor: pointer;
}

/* Validation state */
#intake-form .form-input.invalid,
#intake-form .form-select.invalid,
#intake-form .form-textarea.invalid,
#intake-form .checkbox-grid.invalid {
  border-color: var(--danger);
}

#intake-form .form-input.invalid:focus,
#intake-form .form-select.invalid:focus,
#intake-form .form-textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* Required / optional markers */
.form-label .req {
  color: var(--accent);
  margin-left: 2px;
}

.form-label .opt {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.form-hint a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.form-hint a:hover {
  color: var(--text);
}

/* Honeypot — hidden from humans and screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- CHECKBOX CARDS ---------- */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}

.checkbox-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 18px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.checkbox-card:hover {
  border-color: var(--line-strong);
}

.checkbox-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  width: 100%;
}

.checkbox-label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
  flex-shrink: 0;
  position: relative;
}

.checkbox-card input:checked ~ .checkbox-label::before {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 9px;
  border: solid var(--text-inverse);
  border-width: 0 2px 2px 0;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0;
  transition: opacity 150ms var(--ease);
  pointer-events: none;
}

.checkbox-card input:checked ~ .checkbox-label::after {
  opacity: 1;
}

/* ---------- FILE DROP ---------- */
.file-drop {
  position: relative;
  background: var(--bg-elev-1);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.file-drop:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev-2);
}

.file-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  color: var(--text-dim);
  pointer-events: none;
}

.file-drop-inner svg {
  color: var(--text-dim);
}

.file-drop-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.file-drop-btn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  pointer-events: auto;
}

.file-drop-btn:hover {
  color: var(--accent-hover);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: auto;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.file-list .file-name {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: var(--space-3);
  flex: 1;
}

.file-list .file-size {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-right: var(--space-3);
}

.file-list .file-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 6px;
  transition: color var(--dur-fast) var(--ease);
}

.file-list .file-remove:hover {
  color: var(--danger);
}

/* ---------- FORM ERROR ---------- */
.form-error {
  padding: 16px 20px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
}

.form-error[hidden] { display: none; }

/* ---------- SUBMIT ---------- */
.form-submit {
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.form-submit .btn-lg {
  min-width: 220px;
}

.form-submit .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- SIDEBAR ---------- */
.start-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

@media (max-width: 1000px) {
  .start-sidebar {
    position: static;
    padding-top: var(--space-6);
    border-top: 1px solid var(--line);
  }
}

.sidebar-block {
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
}

.sidebar-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sla-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.sidebar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

.sidebar-link:hover {
  color: var(--text);
}

.sidebar-link svg {
  flex-shrink: 0;
  color: var(--text-dim);
}

/* ---------- NEXT STEPS LIST ---------- */
.next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.next-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
}

.next-steps .mono {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  padding-top: 3px;
}

.next-steps strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.next-steps p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- SUCCESS STATE ---------- */
.start-success {
  min-height: 100vh;
  padding: 180px 0 var(--space-10);
  display: flex;
  align-items: flex-start;
}

.start-success[hidden] { display: none; }

.success-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  margin-bottom: var(--space-6);
  animation: checkPop 500ms var(--ease-out);
}

@keyframes checkPop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

.success-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(2rem, 4vw, 3rem);
}

.success-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-7);
  line-height: 1.6;
}

.success-ref {
  display: inline-block;
  padding: var(--space-5) var(--space-7);
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  text-align: center;
}

.success-ref .label {
  margin-bottom: var(--space-2);
  display: block;
}

.ref-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.success-email {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-9);
}

.success-email strong {
  color: var(--text);
  font-weight: 500;
}

.success-next {
  text-align: left;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line);
  margin-bottom: var(--space-7);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ---------- FADE-IN ON PAGE LOAD ---------- */
.start-hero .label,
.start-hero-title,
.start-hero-sub {
  opacity: 0;
  animation: startFade 600ms var(--ease-out) forwards;
}

.start-hero .label { animation-delay: 80ms; }
.start-hero-title  { animation-delay: 160ms; }
.start-hero-sub    { animation-delay: 240ms; }

@keyframes startFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .start-hero-title,
  .start-hero-sub,
  .start-hero .label,
  .success-check {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}