/* ====================================================================
   PURPLE DOT CREATIVE — STYLESHEET
   Dark mode design with purple (#6d4aff) highlights
   ==================================================================== */

/* === COLOR TOKENS === */
:root {
  --bg-primary: #0d0b14;
  --bg-secondary: #15121f;
  --bg-tertiary: #1e1a2e;
  --bg-input-focus: #251f3a;

  --accent-purple: #6d4aff;
  --accent-purple-light: #8c6eff;
  --accent-purple-dark: #5a3dd6;
  --accent-purple-dim: rgba(109, 74, 255, 0.2);

  --text-primary: #e8e4f0;
  --text-secondary: #a39bb5;
  --text-muted: #6b6280;

  --border-default: #2a2438;
  --border-focus: #6d4aff;

  --success: #3ddc84;
  --warning: #ffb84d;
  --error: #ff4d6d;

  --shadow-elevation-1: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-elevation-2: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-purple-glow: 0 0 20px rgba(109, 74, 255, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
}

/* === GLOBAL RESETS === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-purple-light);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  flex: 1;
  display: grid;
  gap: 48px;
  padding: 48px 24px;
}

@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
}

/* === HEADER / NAVIGATION === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-default);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-tagline {
  font-size: var(--font-size-sm);
  color: var(--accent-purple);
  font-weight: 500;
  display: none;
}

@media (min-width: 768px) {
  .logo-tagline { display: inline-block; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: block; }
}

/* === HERO SECTION === */
.hero-section {
  text-align: center;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent-purple);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-purple-glow);
}

.hero-cta:hover {
  background: var(--accent-purple-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation-2), var(--shadow-purple-glow);
}

/* === FORM SECTION === */
.form-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-elevation-1);
  border: 1px solid var(--border-default);
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.section-heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* PROGRESS BAR */
.progress-container { margin-bottom: 40px; }

.progress-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.progress-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-steps {
  display: flex;
  flex: 1;
  gap: 8px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  transition: background var(--transition-normal);
}

.progress-step.completed { background: var(--accent-purple); }
.progress-step.current   { background: var(--accent-purple-light); }

.step-indicators {
  display: flex;
  gap: 8px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.step-dot.completed {
  background: var(--accent-purple);
  color: white;
}

.step-dot.current {
  background: var(--accent-purple-light);
  color: white;
}

/* FORM STEPS (PROGRESSIVE DISCLOSURE) */
.form-step { animation: slideIn 0.4s ease forwards; }

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

.form-step.hidden { display: none; }

.step-heading {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
}

/* FIELD GROUPS */
.field-group { margin-bottom: 24px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
}

/* LABELS */
.field-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.field-required { color: var(--error); }

.field-help {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 6px;
}

.field-note {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--accent-purple-light);
  margin-top: 4px;
}

/* INPUTS */
.input-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.input-control:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 4px var(--accent-purple-dim);
}

.input-control::placeholder { color: var(--text-muted); }
.input-control.error   { border-color: var(--error); }
.input-control.success { border-color: var(--success); }

.input-error-message {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--error);
  margin-top: 6px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* SELECT DROPDOWNS */
.select-wrapper { position: relative; }

.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  pointer-events: none;
}

select.input-control {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

/* CHECKBOXES AND RADIO BUTTONS */
.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  min-width: 150px;
  user-select: none;
}

.checkbox-item:hover, .radio-item:hover {
  border-color: var(--accent-purple);
}

.checkbox-item.selected, .radio-item.selected {
  border-color: var(--accent-purple);
  background: var(--accent-purple-dim);
}

.checkbox-item input, .radio-item input { display: none; }

/* FILE UPLOAD AREA */
.file-upload-zone {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--bg-tertiary);
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--accent-purple);
  background: var(--bg-input-focus);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--accent-purple);
}

.upload-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.upload-formats {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 8px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.file-preview {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.file-info { flex: 1; min-width: 0; }

.file-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition-fast);
  font-size: var(--font-size-sm);
}

.file-remove-btn:hover { color: var(--error); }

/* SUBMIT SECTION */
.submit-actions {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-default);
  display: flex;
  gap: 16px;
}

.btn-submit, .btn-next, .btn-prev {
  padding: 16px 32px;
  background: var(--accent-purple);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-purple-glow);
  flex: 1;
  text-align: center;
}

.btn-prev {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 2px solid var(--border-default);
  box-shadow: none;
  flex: 0 0 auto;
  padding: 16px 24px;
}

.btn-submit:hover:not(:disabled),
.btn-next:hover:not(:disabled) {
  background: var(--accent-purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation-2), var(--shadow-purple-glow);
}

.btn-prev:hover:not(:disabled) {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.btn-submit:disabled,
.btn-next:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* SUCCESS MESSAGE */
.success-message, .error-message {
  display: none;
  text-align: center;
  padding: 64px 24px;
}

.success-message.visible, .error-message.visible {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

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

.success-icon, .error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
}

.success-icon { background: var(--success); }
.error-icon   { background: var(--error); }

.success-title, .error-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 16px;
}

.success-text, .error-text {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 24px;
}

.tracking-id {
  font-family: monospace;
  font-size: var(--font-size-lg);
  color: var(--accent-purple);
  background: var(--bg-tertiary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  letter-spacing: 1px;
}

/* TERMS CHECKBOX */
.terms-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
}

.terms-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.terms-checkbox {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--accent-purple);
  cursor: pointer;
  flex-shrink: 0;
}

.terms-content { flex: 1; }

.terms-list {
  list-style: none;
  margin-bottom: 16px;
}

.terms-list li {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 8px;
}

.terms-list li::before {
  content: '• ';
  color: var(--accent-purple);
}

.terms-agree { font-size: var(--font-size-sm); }

.terms-intro {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: 16px;
}

/* === FAQ SECTION === */
.faq-section {
  padding: 48px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.faq-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-purple-dim);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-question-icon {
  font-size: var(--font-size-lg);
  color: var(--accent-purple);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-question-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 24px;
}

.faq-answer.expanded {
  max-height: 500px;
  padding: 0 24px 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: 40px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-about { color: var(--text-secondary); }
.footer-about h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.footer-about p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.footer-contact h4, .footer-links h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-contact p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-default);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  .submit-actions {
    flex-direction: column-reverse;
  }

  .btn-prev {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-title { font-size: var(--font-size-2xl); }
  .hero-subtitle { font-size: var(--font-size-base); }
  .form-section { padding: 24px 20px; }
  .step-heading { font-size: var(--font-size-lg); }
  .checkbox-item, .radio-item { min-width: 100%; }
  .section-heading, .faq-heading { font-size: var(--font-size-xl); }
}