:root {
    --bg-primary: #0d0f12;
    --bg-secondary: #13161b;
    --bg-card: #1a1e25;
    --bg-input: #22272f;
    --border: #2a303a;
    --border-focus: #e8863a;
    --accent: #e8863a;
    --accent-hover: #f09a52;
    --accent-glow: rgba(232, 134, 58, 0.15);
    --accent-subtle: rgba(232, 134, 58, 0.08);
    --text-primary: #eaedf2;
    --text-secondary: #8b95a5;
    --text-muted: #5c6678;
    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-accent: 0 4px 24px rgba(232, 134, 58, 0.2);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Background atmosphere */
  body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,134,58,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
  body::after {
    content: '';
    position: fixed;
    bottom: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
/* Top navigation bar */
  .top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
  }
  .top-bar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .top-bar .brand-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #d4702a);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
  }
  .top-bar .brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
  }
  .top-bar .brand-text span {
    color: var(--accent);
  }
  .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .top-bar-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .top-bar-right a:hover { color: var(--accent); }
  .help-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .help-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Main layout */
  .page-container {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 60px;
  }

  /* Page header */
  .page-header {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeInDown 0.6s ease;
  }
  .page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .page-header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
  }
  .page-header .required-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
  }
  .page-header .required-note .req-star {
    color: var(--error);
    font-size: 14px;
  }

  /* Form card */
  .form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease 0.1s both;
  }

  /* Section blocks */
  .form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }
  .form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
  }
  .section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }
  .section-icon.orange { background: rgba(232,134,58,0.12); color: var(--accent); }
  .section-icon.teal { background: rgba(20,184,166,0.12); color: #14b8a6; }
  .section-icon.blue { background: rgba(59,130,246,0.12); color: #3b82f6; }
  .section-icon.purple { background: rgba(168,85,247,0.12); color: #a855f7; }
  .section-icon.pink { background: rgba(236,72,153,0.12); color: #ec4899; }

  .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
  }
  .section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
  }

  /* Form grid */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .form-grid .full-width {
    grid-column: 1 / -1;
  }

  /* Form fields */
  .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .field-label .req {
    color: var(--error);
    font-size: 15px;
    line-height: 1;
  }
  .field-input-wrap {
    position: relative;
  }
  .field-input-wrap .prefix-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s;
  }
  .field-input-wrap .suffix-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s;
  }
  .field-input-wrap.has-prefix input,
  .field-input-wrap.has-prefix select {
    padding-left: 38px;
  }
  .field-input-wrap.has-suffix input,
  .field-input-wrap.has-suffix select {
    padding-right: 38px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="url"],
  select,
  textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
  }
  input::placeholder,
  textarea::placeholder {
    color: var(--text-muted);
    font-size: 13px;
  }
  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: #1f242c;
  }
  input:focus + .prefix-icon,
  input:focus ~ .prefix-icon {
    color: var(--accent);
  }
  input.error,
  select.error,
  textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(248,113,113,0.12);
  }
  input.valid,
  select.valid {
    border-color: var(--success);
  }

  select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235c6678' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
  }
  select option {
    background: var(--bg-card);
    color: var(--text-primary);
  }

  textarea {
    resize: vertical;
    min-height: 90px;
  }

  .field-error {
    font-size: 11px;
    color: var(--error);
    min-height: 16px;
    display: none;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s;
  }
  .field-error.show-error {
    opacity: 1;
    display: flex;
    transform: translateY(0);
  }

  /* Checkbox / Radio groups */
  .check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }
  .check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
  }
  .check-item:hover {
    border-color: var(--text-muted);
    background: #262b34;
  }
  .check-item input { display: none; }
  .check-item input:checked + .check-box {
    background: var(--accent);
    border-color: var(--accent);
  }
  .check-item input:checked + .check-box::after {
    opacity: 1;
    transform: scale(1);
  }
  .check-item input:checked ~ .check-label {
    color: var(--text-primary);
  }
  .check-item:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-subtle);
  }
  .check-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
  }
  .check-box::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
  }
  .check-label {
    font-weight: 500;
    transition: color 0.2s;
  }

  /* Radio item */
  .radio-item input:checked + .radio-dot {
    border-color: var(--accent);
  }
  .radio-item input:checked + .radio-dot::after {
    opacity: 1;
    transform: scale(1);
  }
  .radio-item:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-subtle);
  }
  .radio-dot {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
  }

  /* File upload */
  .file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--accent-subtle);
  }
  .file-upload-area:hover {
    border-color: var(--accent);
    background: rgba(232,134,58,0.06);
  }
  .file-upload-area.dragover {
    border-color: var(--accent);
    background: rgba(232,134,58,0.1);
    transform: scale(1.01);
  }
  .file-upload-area .upload-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 10px;
  }
  .file-upload-area .upload-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
  }
  .file-upload-area .upload-text strong {
    color: var(--accent);
    font-weight: 600;
  }
  .file-upload-area .upload-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
  }
  .file-upload-area input { display: none; }
  .file-name {
    margin-top: 10px;
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  /* Terms checkbox */
  .terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    cursor: pointer;
  }
  .terms-check input { display: none; }
  .terms-check .terms-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--text-muted);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
  }
  .terms-check input:checked + .terms-box {
    background: var(--accent);
    border-color: var(--accent);
  }
  .terms-check input:checked + .terms-box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #fff;
  }
  .terms-check .terms-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
  }
  .terms-check .terms-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* Submit area */
  .submit-area {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .submit-info {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .submit-info i { color: var(--success); }

  .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent), #d4702a);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
  }
  .btn-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s;
  }
  .btn-submit:hover::before { left: 100%; }
  .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(232,134,58,0.35);
  }
  .btn-submit:active { transform: translateY(0); }
  .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  .btn-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  .btn-submit.loading .spinner { display: block; }
  .btn-submit.loading .btn-text { display: none; }

  .btn-reset {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-reset:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
  }

  /* Toast notification */
  .toast-container {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    min-width: 280px;
    max-width: 400px;
  }
  .toast.show { transform: translateX(0); }
  .toast.success {
    background: #0d2818;
    border: 1px solid rgba(52,211,153,0.3);
    color: var(--success);
  }
  .toast.error {
    background: #2a1215;
    border: 1px solid rgba(248,113,113,0.3);
    color: var(--error);
  }
  .toast.warning {
    background: #2a2210;
    border: 1px solid rgba(251,191,36,0.3);
    color: var(--warning);
  }
  .toast i { font-size: 16px; flex-shrink: 0; }

  /* Success overlay */
  .success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,15,18,0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .success-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
  .success-content {
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  }
  .success-overlay.show .success-content { transform: scale(1); }
  .success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(52,211,153,0.3);
  }
  .success-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .success-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto 28px;
  }
  .success-content .btn-close-success {
    padding: 10px 28px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .success-content .btn-close-success:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Progress bar */
  .progress-bar-wrap {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 28px;
    overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f0a060);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
  }

  /* Animations */
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* Section appear animation */
  .form-section {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.5s ease forwards;
  }
  .form-section:nth-child(1) { animation-delay: 0.15s; }
  .form-section:nth-child(2) { animation-delay: 0.25s; }
  .form-section:nth-child(3) { animation-delay: 0.35s; }
  .form-section:nth-child(4) { animation-delay: 0.45s; }
  .form-section:nth-child(5) { animation-delay: 0.55s; }

  /* Floating particles */
  .particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
  }
  @keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.4; }
    90% { opacity: 0.1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
  }

  /* Responsive */
  @media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .submit-area { flex-direction: column; align-items: stretch; text-align: center; }
    .submit-info { justify-content: center; }
    .btn-submit, .btn-reset { width: 100%; justify-content: center; }
    .top-bar-right a.hide-mobile { display: none; }
    .check-group { gap: 8px; }
    .check-item { flex: 1; min-width: calc(50% - 4px); }
    .form-card { padding: 20px 16px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    .particles { display: none; }
  }

  .input-error {
    border-color: red;
  }
  