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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 0 20px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
}

.header .subtitle {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
}

/* Card */
.card {
  background: #161616;
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #2a2a2a;
  margin-bottom: 20px;
}

/* Step indicators */
.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  transition: background 0.3s;
}

.step-dot.active {
  background: #fff;
}

.step-dot.completed {
  background: #4caf50;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ccc;
}

.form-group label .th {
  font-weight: 400;
  color: #666;
  margin-left: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
  background: #1e1e1e;
  color: #e0e0e0;
}

.form-group input::placeholder {
  color: #555;
}

.form-group select {
  color: #e0e0e0;
}

.form-group select option {
  background: #1e1e1e;
  color: #e0e0e0;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #fff;
}

.form-group input.error,
.form-group select.error {
  border-color: #e53935;
}

.form-group .error-msg {
  font-size: 12px;
  color: #e53935;
  margin-top: 4px;
  display: none;
}

.form-group .hint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Payee type selector */
.type-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.type-option {
  flex: 1;
  padding: 20px 16px;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.type-option:hover {
  border-color: #555;
  background: #1e1e1e;
}

.type-option.selected {
  border-color: #fff;
  background: #1e1e1e;
}

.type-option .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.type-option .label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.type-option .label-th {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* VAT warning */
.vat-warning {
  background: #2a1f00;
  border: 1px solid #665200;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #e0c060;
  display: none;
}

.vat-warning strong {
  display: block;
  margin-bottom: 6px;
  color: #ffb300;
}

.vat-warning a {
  color: #ffb300;
  text-decoration: underline;
}

/* Fee calculation display */
.fee-display {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 20px;
  margin-top: 16px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #ccc;
}

.fee-row .label-th {
  font-size: 12px;
  color: #666;
  display: block;
}

.fee-row.total {
  border-top: 2px solid #fff;
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

/* Review section */
.review-section {
  margin-bottom: 20px;
}

.review-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2a2a;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.review-row .label {
  color: #888;
}

.review-row .value {
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  color: #e0e0e0;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  flex: 1;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: #ddd;
}

.btn-primary:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: #ccc;
  border: 1px solid #444;
}

.btn-secondary:hover {
  background: #1e1e1e;
  border-color: #666;
}

/* Success / Error states */
.result-screen {
  text-align: center;
  padding: 40px 0;
}

.result-screen .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.result-screen h2 {
  margin-bottom: 8px;
  color: #fff;
}

.result-screen p {
  color: #888;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* reCAPTCHA */
.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Status list */
.status-list {
  font-size: 14px;
}

.status-item {
  padding: 10px 0;
  color: #666;
  transition: color 0.3s;
}

.status-item.active {
  color: #fff;
}

.status-item.done {
  color: #4caf50;
}

.status-icon {
  display: inline-block;
  width: 24px;
}

/* Step title */
.step-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

/* Date picker dark mode */
input[type="date"] {
  color-scheme: dark;
}

/* File input styling */
input[type="file"] {
  padding: 12px;
  border: 1px dashed #444;
  border-radius: 6px;
  background: #1a1a1a;
  width: 100%;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: #333;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  .card {
    padding: 20px;
  }

  .type-selector {
    flex-direction: column;
  }

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

  .review-row .value {
    text-align: left;
    max-width: 100%;
  }
}
