/* ═══════════════════════════════════════════════
   FORM SPECIFIC STYLES
═══════════════════════════════════════════════ */

/* Form Hero */
.form-hero {
  background: var(--hero-bg);
  padding: 80px 24px 44px;
  position: relative;
  overflow: hidden;
}

.form-hero-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.breadcrumb-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb svg {
  opacity: 0.4;
  color: #fff;
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.form-hero-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.exchange-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.exchange-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hero-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-hero-title {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.form-hero-title-generic {
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.form-hero-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Form Body */
.form-body {
  background: #f7f8fa;
  min-height: calc(100vh - 250px);
  padding: 0 24px 80px;
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 36px;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-item:last-child {
  flex: none;
}

.step-item:last-child .step-connector {
  display: none;
}

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.step-circle.active {
  background: #0d1117;
}

.step-circle.done {
  background: #2563eb;
}

.step-number {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
}

.step-circle.active .step-number {
  color: #fff;
}

.step-label {
  color: #9ca3af;
  font-size: 12.5px;
  font-weight: 400;
  margin-left: 8px;
  white-space: nowrap;
}

.step-circle.active + .step-label {
  color: #0d1117;
  font-weight: 600;
}

.step-circle.done + .step-label {
  color: #2563eb;
}

.step-connector {
  flex: 1;
  height: 1px;
  background: #e2e5ea;
  margin: 0 10px;
  transition: background 0.2s ease;
}

.step-connector.done {
  background: #2563eb;
}

/* Form Card */
.form-card {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.form-step {
  padding: 32px 32px 28px;
}

.form-step-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f1f3;
}

.step-indicator-text {
  margin: 0 0 2px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-step-title {
  margin: 0;
  color: #0d1117;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #0d1117;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.label-hint {
  color: #9ca3af;
  font-weight: 400;
  font-size: 11.5px;
  margin-left: 6px;
}

.optional {
  color: #9ca3af;
  font-weight: 400;
  font-size: 11.5px;
  margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e5ea;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #0d1117;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc2626;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.field-error {
  color: #dc2626;
  font-size: 12.5px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-error:empty {
  display: none;
}

.field-hint {
  color: #9ca3af;
  font-size: 11.5px;
  margin-top: 4px;
}

.char-count {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.char-count span {
  color: #9ca3af;
  font-size: 11px;
}

.char-count span.valid {
  color: #16a34a;
}

/* Locked Exchange Display */
.locked-exchange {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f8fa;
  border: 1.5px solid #e2e5ea;
  border-radius: 10px;
  padding: 10px 14px;
}

.locked-exchange-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.locked-exchange-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.locked-exchange-name {
  color: #0d1117;
  font-weight: 600;
  font-size: 14.5px;
}

.locked-badge {
  margin-left: auto;
  background: #f0f1f3;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 8px;
}

/* Issue Chips */
.issue-section {
  margin-top: 8px;
  margin-bottom: 12px;
}

.issue-section-label {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.issue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.issue-chip {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 450;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
  background: #f4f5f7;
  border: 1.5px solid transparent;
  color: #4b5563;
}

.issue-chip:hover {
  background: #edf0f4;
}

.issue-chip.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.issue-chip.other {
  background: #f4f5f7;
  border: 1.5px dashed #d1d5db;
  color: #9ca3af;
}

.custom-issue-wrap {
  margin-top: 10px;
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

/* Input with Prefix */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0 0 14px;
  background: #f7f8fa;
  border: 1.5px solid #e2e5ea;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

.form-input.has-prefix {
  border-radius: 0 10px 10px 0;
  border-left: none;
}

.input-with-prefix:focus-within .input-prefix {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.input-with-prefix:focus-within .form-input.has-prefix {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Contact Section */
.contact-section {
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 20px 20px 16px;
  margin-bottom: 20px;
}

/* Transaction Section */
.transaction-section {
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 20px 20px 16px;
  margin-bottom: 20px;
}

.section-title {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 11.5px;
  margin-left: 6px;
}

/* Resolution Options */
.resolution-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}

.resolution-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f7f8fa;
  border: 1.5px solid #e2e5ea;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.resolution-option:hover {
  border-color: #d1d5db;
}

.resolution-option.active {
  background: #eff6ff;
  border-color: #2563eb;
}

.resolution-option input {
  accent-color: #2563eb;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.resolution-option span {
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 400;
}

.resolution-option.active span {
  color: #1d4ed8;
  font-weight: 500;
}

/* Review Section */
.review-section {
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

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

.review-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-label {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
}

.review-value {
  color: #0d1117;
  font-size: 13.5px;
  font-weight: 500;
}

/* Declaration */
.declaration-section {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 16px 20px;
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.checkbox-label:hover {
  border-color: #d1d5db;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.checkbox-input:checked + .checkbox-custom {
  background: #2563eb;
  border-color: #2563eb;
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-text {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

/* Server Error */
.server-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 14px 18px;
  color: #dc2626;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* Form Footer */
.form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px 24px;
  border-top: 1px solid #f0f1f3;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #4a90e2 0%, #1d4ed8 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 3px 10px rgba(29, 78, 216, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 22px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: #edf0f4;
  border-color: #d1d5db;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 600px) {
  .form-step {
    padding: 24px 20px 20px;
  }
  
  .form-footer {
    padding: 16px 20px 20px;
  }
  
  .step-label {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   SUCCESS PAGE STYLES
═══════════════════════════════════════════════ */

.success-hero {
  background: #0a0a0a;
  padding: 88px 24px 56px;
}

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

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.15);
  border: 1.5px solid rgba(22, 163, 74, 0.3);
  margin-bottom: 24px;
}

.success-title {
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.success-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.tracking-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px 28px;
  display: inline-block;
  text-align: center;
  min-width: 280px;
}

.tracking-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.tracking-id {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  font-family: monospace;
}

.tracking-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
  margin: 0;
}

.success-body {
  background: #ffffff;
  padding: 56px 24px 80px;
}

.success-container {
  max-width: 680px;
  margin: 0 auto;
}

.email-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.email-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.email-notice p {
  color: #15803d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.next-steps-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.steps-list {
  display: flex;
  flex-direction: column;
}

.step-row {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 32px;
}

.step-row:last-child {
  padding-bottom: 0;
}

.step-row:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  width: 1px;
  height: calc(100% - 20px);
  background: #e8eaed;
}

.step-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.step-content {
  padding-top: 10px;
}

.step-content h3 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

.tracking-reminder {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 44px;
  margin-bottom: 40px;
}

.tracking-reminder-label {
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.tracking-reminder-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.tracking-reminder-id {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 0;
  font-family: monospace;
}

.success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
  padding: 11px 24px;
  font-size: 14px;
  text-decoration: none;
}
