.form-body {
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 920px;
}

.preview-panel {
  flex: 1 1 380px;
  min-width: 0;
  position: sticky;
  top: 24px;
}

.form-card {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 520px;
  background: var(--panel);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.form-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.form-card h1 { margin: 0; font-size: 1.6rem; }
.subtitle { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

.preview-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2c38;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.preview-label {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .page-layout {
    flex-direction: column;
  }
  .preview-panel {
    position: static;
    width: 100%;
  }
  .form-card {
    max-width: none;
    width: 100%;
  }
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

textarea, input[type="text"], select {
  width: 100%;
  background: #0f1016;
  border: 1px solid #2a2c38;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  resize: none;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.eta-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  min-height: 16px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.option-btn {
  background: #0f1016;
  border: 1px solid #2a2c38;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-btn:hover { border-color: #454759; }
.option-btn.selected {
  border-color: var(--accent);
  background: rgba(255,204,0,0.1);
  color: var(--accent);
  font-weight: 600;
}

button[type="submit"] {
  width: 100%;
  margin-top: 28px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  min-height: 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}
.form-status.error { color: var(--accent-2); }
.form-status.success { color: #4dffcf; }

.paid-section { margin-top: 8px; }
.paid-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.paid-divider::before, .paid-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2c38;
}
.paid-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.paid-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.paid-hours-label {
  min-width: 70px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}
.paid-btn {
  width: 100%;
  margin-top: 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.paid-btn:hover { background: rgba(255,204,0,0.08); }
.paid-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.success-panel { text-align: center; }
.success-panel h2 { margin: 0 0 8px; font-size: 1.3rem; }
.success-panel p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.success-panel .cta {
  display: inline-block;
  background: var(--accent);
  color: #111;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
}
.back-link-inline {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
