*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --yellow: #F5C300;
    --yellow-hover: #DBA900;
    --yellow-soft: rgba(245, 195, 0, 0.08);
    --yellow-glow: rgba(245, 195, 0, 0.25);
    --bg: #F0F2F5;
    --card: #FFFFFF;
    --text: #1A1A1A;
    --muted: #888888;
    --placeholder: #AAAAAA;
    --border: #DDDDDD;
    --divider: #E0E0E0;
    --red: #EF4444;
    --font: 'DM Sans', system-ui, sans-serif;
    --mono: 'DM Mono', monospace;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font);
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    display: flex;
    flex-direction: column;
  }

  /* ── Header ── */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--divider);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    justify-content: space-between;
    animation: slideDown 0.45s cubic-bezier(0.22,1,0.36,1) both;
  }

  @keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
  }

  .header-logo { display: flex; align-items: center; gap: 10px; }
  .header-logo svg { height: 20px; width: auto; }

  .devzone-badge {
    background: var(--yellow);
    color: var(--text);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: var(--mono);
    user-select: none;
  }

  .header-label { font-size: 13px; color: var(--muted); font-weight: 500; }

  /* ── Background blobs ── */
  .bg-blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatBlob ease-in-out infinite;
  }
  .bg-blob-1 {
    width: 480px; height: 480px;
    top: -140px; right: -140px;
    background: radial-gradient(circle, rgba(245,195,0,0.13) 0%, transparent 70%);
    animation-duration: 9s;
  }
  .bg-blob-2 {
    width: 340px; height: 340px;
    bottom: -80px; left: -80px;
    background: radial-gradient(circle, rgba(245,195,0,0.08) 0%, transparent 70%);
    animation-duration: 13s;
    animation-direction: reverse;
  }

  @keyframes floatBlob {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.05); }
  }

  /* ── Main ── */
  main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px 40px;
    position: relative;
    z-index: 1;
  }

  /* ── Card ── */
  .card {
    position: relative;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 44px 44px 36px;
    width: 100%;
    max-width: 600px;
    animation: riseUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
  }

  @keyframes riseUp {
    from { transform: translateY(32px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  /* Yellow top bar */
  .card::before {
    content: '';
    position: absolute;
    top: 0; left: 44px; right: 44px;
    height: 3px;
    background: var(--yellow);
    border-radius: 0 0 4px 4px;
  }

  /* ── Form header ── */
  .form-header {
    margin-bottom: 28px;
    animation: fadeUp 0.5s ease both;
    animation-delay: 0.2s;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-bottom: 6px;
  }

  .form-subtitle {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
  }

  /* ── Instructions ── */
  .instructions {
    background: var(--yellow-soft);
    border: 1px solid rgba(245,195,0,0.28);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 28px;
    animation: fadeUp 0.5s ease both;
    animation-delay: 0.25s;
  }

  .instructions-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--yellow-hover);
    margin-bottom: 10px;
    font-family: var(--mono);
  }

  .instructions ol { list-style: none; display: flex; flex-direction: column; gap: 7px; }

  .instructions li {
    font-size: 12px;
    color: #555;
    display: flex;
    gap: 10px;
    line-height: 1.5;
    align-items: flex-start;
  }

  .instructions li .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--yellow);
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    margin-top: 1px;
    font-family: var(--mono);
  }

  /* ── Divider ── */
  .divider {
    height: 1px;
    background: var(--divider);
    margin: 28px 0;
    animation: fadeUp 0.5s ease both;
    animation-delay: 0.3s;
  }

  /* ── Fields ── */
  .field-group { display: flex; flex-direction: column; gap: 22px; }

  .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    animation: fadeUp 0.45s ease forwards;
  }

  .field:nth-child(1) { animation-delay: 0.33s; }
  .field:nth-child(2) { animation-delay: 0.39s; }
  .field:nth-child(3) { animation-delay: 0.45s; }
  .field:nth-child(4) { animation-delay: 0.51s; }
  .field:nth-child(5) { animation-delay: 0.57s; }
  .field:nth-child(6) { animation-delay: 0.63s; }

  .field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 2px;
    user-select: none;
  }

  .required { color: #EF4444; font-size: 14px; }

  .field-helper { font-size: 12px; color: var(--muted); margin-bottom: 1px; }

  /* ── Input ── */
  .input-wrap { position: relative; }
  .input-wrap .field-input { padding-left: 38px; }

  .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--placeholder);
    pointer-events: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
  }

  .input-wrap:focus-within .input-icon { color: var(--yellow-hover); }

  .field-input, textarea.field-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #FAFAFA;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  }

  input.field-input { height: 44px; }
  textarea.field-input { height: auto; resize: vertical; padding-top: 10px; }

  .field-input::placeholder { color: var(--placeholder); }

  .field-input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-glow);
    background: #fff;
  }

  .field-input:hover:not(:focus) { border-color: #BBBBBB; }

  .field-input.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
  }

  /* ── Char counter ── */
  .input-footer { display: flex; justify-content: flex-end; margin-top: 3px; }

  .char-count {
    font-size: 11px;
    color: var(--placeholder);
    font-family: var(--mono);
    transition: color 0.2s;
  }

  .char-count.warn { color: #E88C00; }
  .char-count.over { color: var(--red); }

  /* ── Field error ── */
  .field-error {
    font-size: 11px;
    color: var(--red);
    font-weight: 500;
    display: none;
    margin-top: 2px;
    animation: shake 0.3s ease;
  }

  .field-error.visible { display: block; }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
  }

  /* ── Upload zone ── */
  .upload-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    background: #FAFAFA;
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
  }

  .upload-zone:hover, .upload-zone.dragover {
    border-color: var(--yellow);
    background: var(--yellow-soft);
    box-shadow: 0 0 0 4px var(--yellow-glow);
  }

  .upload-zone.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
  }

  .upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
  }

  .upload-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(245,195,0,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    color: var(--yellow-hover);
  }

  .upload-zone:hover .upload-icon-wrap,
  .upload-zone.dragover .upload-icon-wrap {
    background: rgba(245,195,0,0.22);
    transform: scale(1.08) translateY(-2px);
  }

  .upload-text-main { font-size: 13px; font-weight: 600; color: var(--text); }
  .upload-link { color: var(--yellow-hover); }
  .upload-text-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.03em; }

  /* ── File list (multi-file) ── */
  .file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--yellow-soft);
    border: 1.5px solid rgba(245,195,0,0.35);
    border-radius: 8px;
    animation: fadeUp 0.22s ease both;
  }

  .file-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(245,195,0,0.3);
    flex-shrink: 0;
    background: var(--divider);
  }

  /* Generic file icon placeholder when no image preview */
  .file-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(245,195,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-hover);
  }

  .file-item-info { flex: 1; min-width: 0; }

  .file-item-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .file-item-size {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
    margin-top: 2px;
  }

  .file-item-remove {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.07);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    color: var(--text);
  }

  .file-item-remove:hover { background: rgba(239,68,68,0.15); color: var(--red); }

  /* "Add more" strip shown below the file list */
  .file-add-more {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    background: #FAFAFA;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    position: relative;
    margin-top: 2px;
  }

  .file-add-more.visible { display: flex; }

  .file-add-more input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
  }

  .file-add-more:hover {
    border-color: var(--yellow);
    color: var(--yellow-hover);
    background: var(--yellow-soft);
  }

  /* ── Pills ── */
  .pill-group { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 4px 2px 4px; margin: -4px -2px -4px; }

  .pill {
    border: 1.5px solid #CCCCCC;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
    user-select: none;
  }

  .pill:hover {
    border-color: var(--yellow);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245,195,0,0.2);
  }

  .pill.active {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(245,195,0,0.35);
    transform: translateY(0);
  }

  /* ── Custom Language Dropdown ── */
  .custom-select { position: relative; user-select: none; }

  .custom-select-trigger {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #FAFAFA;
    padding: 0 14px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-family: var(--font); font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    text-align: left;
  }

  .custom-select-trigger:hover { border-color: #BBBBBB; background: #fff; }

  .custom-select.open .custom-select-trigger {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-glow);
    background: #fff;
  }

  .cs-icon { color: var(--muted); display: flex; align-items: center; flex-shrink: 0; transition: color 0.2s; }
  .custom-select.open .cs-icon { color: var(--yellow-hover); }

  .cs-flag { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; background-size: cover; }
  .cs-value { flex: 1; }

  .cs-chevron {
    color: var(--muted); display: flex; align-items: center; flex-shrink: 0;
    transition: transform 0.22s ease, color 0.2s;
  }
  .custom-select.open .cs-chevron { transform: rotate(180deg); color: var(--yellow-hover); }

  /* Panel */
  .custom-select-panel {
    position: fixed;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
    z-index: 9999;
    width: 0;
    display: none;
    overflow: hidden;
    animation: dropIn 0.18s cubic-bezier(0.22,1,0.36,1);
  }

  @keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  .cs-search-wrap {
    padding: 10px 10px 6px;
    position: relative;
    border-bottom: 1px solid var(--divider);
  }

  .cs-search-icon {
    position: absolute;
    left: 20px; top: 50%; transform: translateY(-50%);
    color: var(--placeholder);
    pointer-events: none;
    margin-top: 2px;
  }

  .cs-search {
    width: 100%;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: #FAFAFA;
    padding: 0 10px 0 32px;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .cs-search::placeholder { color: var(--placeholder); }
  .cs-search:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-glow);
    background: #fff;
  }

  .custom-select-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    list-style: none;
  }

  .custom-select-list::-webkit-scrollbar { width: 4px; }
  .custom-select-list::-webkit-scrollbar-track { background: transparent; }
  .custom-select-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .custom-select-list::-webkit-scrollbar-thumb:hover { background: #BBBBBB; }

  .cs-option {
    padding: 9px 12px;
    font-size: 13px; font-weight: 500;
    color: var(--text);
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.12s;
    display: flex; align-items: center; gap: 10px;
  }

  .cs-option .cs-opt-flag { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; background-size: cover; }
  .cs-option .cs-opt-label { flex: 1; }

  .cs-option:hover { background: var(--yellow-soft); }

  .cs-option.cs-selected {
    background: var(--yellow);
    font-weight: 600;
  }

  .cs-option.cs-selected::after {
    content: '';
    width: 6px; height: 10px;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(45deg) translate(-1px, -2px);
    display: inline-block;
    flex-shrink: 0;
    margin-left: auto;
  }

  .cs-no-results {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
  }

  /* ── Language field slide animation ── */
  .language-field {
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.35s cubic-bezier(0.4,0,0.2,1);
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }
  .language-field.visible {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  /* ── Submit ── */
  .submit-area {
    margin-top: 36px;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 0.72s;
  }

  .btn-submit {
    width: 100%;
    height: 52px;
    background: var(--yellow);
    color: var(--text);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    letter-spacing: -0.01em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
  }

  .btn-submit::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 55%);
    pointer-events: none;
  }

  .btn-submit:hover:not(:disabled) {
    background: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,195,0,0.38);
  }

  .btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245,195,0,0.2);
  }

  .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; transform: none; }

  /* ── reCAPTCHA widget ── */
  .recaptcha-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 8px;
  }

  .recaptcha-status {
    font-size: 12px;
    color: #888;
    min-height: 18px;
    text-align: center;
    font-family: var(--font);
  }
  .recaptcha-status.error   { color: #EF4444; }
  .recaptcha-status.success { color: #28A07A; font-weight: 600; }

  .spinner-sm {
    width: 13px; height: 13px;
    border: 2px solid rgba(100,100,100,0.25);
    border-top-color: #555;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
  }

  .btn-arrow { font-size: 18px; transition: transform 0.2s; }
  .btn-submit:hover .btn-arrow { transform: translateX(4px); }

  .spinner {
    width: 20px; height: 20px;
    border: 2.5px solid rgba(26,26,26,0.22);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  .btn-submit.loading .spinner { display: block; }
  .btn-submit.loading .btn-label,
  .btn-submit.loading .btn-arrow { display: none; }

  /* ── Success state ── */
  .success-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 40px;
    text-align: center;
  }

  .success-overlay.visible {
    display: flex;
    animation: fadeIn 0.4s cubic-bezier(0.22,1,0.36,1);
  }

  .card.card--success .form-header,
  .card.card--success .instructions,
  .card.card--success .divider,
  .card.card--success .field-group,
  .card.card--success .submit-area {
    display: none;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
  }

  .success-icon {
    width: 76px; height: 76px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.1s;
    box-shadow: 0 8px 32px rgba(245,195,0,0.38);
  }

  @keyframes popIn {
    from { transform: scale(0) rotate(-10deg); opacity: 0; }
    to   { transform: scale(1) rotate(0);       opacity: 1; }
  }

  .success-title {
    font-size: 22px; font-weight: 700;
    color: var(--text); letter-spacing: -0.02em;
  }

  .success-msg {
    font-size: 14px; color: var(--muted);
    max-width: 340px; line-height: 1.65;
  }

  .btn-reset {
    margin-top: 4px;
    padding: 10px 28px;
    background: transparent;
    border: 1.5px solid var(--yellow);
    border-radius: 8px;
    font-size: 14px; font-weight: 600;
    font-family: var(--font); color: var(--text);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
  }

  .btn-reset:hover {
    background: var(--yellow-soft);
    box-shadow: 0 2px 10px rgba(245,195,0,0.2);
  }

  /* ── Footer ── */
  footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--divider);
    padding: 20px 24px;
    text-align: center;
    font-size: 12px; color: var(--muted);
    display: flex; flex-direction: column; gap: 6px;
    animation: fadeUp 0.5s ease both;
    animation-delay: 0.82s;
    opacity: 0;
  }

  footer a { color: var(--yellow-hover); text-decoration: none; transition: text-decoration 0.15s; }
  footer a:hover { text-decoration: underline; }
  .footer-dot { color: #CCCCCC; padding: 0 8px; }

  /* ── Responsive ── */
  @media (max-width: 640px) {
    main { padding: 24px 16px 32px; }
    .card { padding: 28px 20px 24px; }
    header { padding: 0 20px; }
    .pill { width: 100%; text-align: center; }
  }
.hidden { display: none; }
