.kth-wrap {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 960px;
  margin: 0 auto;
  color: #1a1a2e;
  line-height: 1.5;
}

.kth-wrap *,
.kth-wrap *::before,
.kth-wrap *::after {
  box-sizing: border-box;
}

.kth-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #edf2f7;
}

.kth-header h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kth-intro-text p,
.kth-help-text {
  margin: 0 0 8px;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
}

.kth-section {
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kth-section-header {
  margin: 0;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #c62828, #b71c1c);
}

.kth-section-body {
  padding: 20px;
}

.kth-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.kth-fieldset legend {
  margin-bottom: 8px;
  color: #4a5568;
  font-size: 12.5px;
  font-weight: 600;
}

.kth-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.kth-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.kth-grid-2 { grid-template-columns: repeat(2, 1fr); }
.kth-grid-3 { grid-template-columns: repeat(3, 1fr); }

.kth-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.kth-grid .kth-field {
  margin-bottom: 0;
}

.kth-field label,
.kth-check {
  color: #4a5568;
  font-size: 12.5px;
  font-weight: 600;
}

.kth-field label {
  margin-bottom: 5px;
}

.kth-required-star {
  color: #e53e3e;
}

.kth-field input[type="text"],
.kth-field input[type="email"],
.kth-field input[type="tel"],
.kth-field input[type="date"],
.kth-field input[type="file"],
.kth-field textarea {
  width: 100%;
  padding: 9px 12px;
  color: #1a1a2e;
  font: inherit;
  font-size: 14px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
}

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

.kth-field input:focus,
.kth-field textarea:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.kth-field input[readonly] {
  background: #f7fafc;
  color: #2d3748;
}

.kth-field input.kth-error-field,
.kth-field textarea.kth-error-field {
  background: #fff5f5;
  border-color: #e53e3e;
}

.kth-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  color: #2d3748;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}

.kth-check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #c62828;
  flex-shrink: 0;
}

.kth-info-box {
  margin-top: 12px;
  padding: 12px 16px;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.6;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #c62828;
  border-radius: 0 8px 8px 0;
}

.kth-info-box.kth-info-orange {
  color: #7b341e;
  background: #fffaf0;
  border-left-color: #dd6b20;
}

.kth-result-box {
  padding: 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
  border-radius: 14px;
}

.kth-result-label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kth-result-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kth-result-breakdown {
  margin-top: 16px;
  padding-top: 16px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.kth-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
}

.kth-breakdown-total {
  margin-top: 8px;
  padding-top: 10px;
  color: #fff;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.kth-result-missing {
  margin-top: 10px;
  color: #fbd38d;
  font-size: 13px;
  font-weight: 600;
}

.kth-actions {
  margin: 8px 0 24px;
  text-align: center;
}

.kth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.kth-btn-success {
  color: #fff;
  background: linear-gradient(135deg, #38a169, #2f855a);
  border: 1.5px solid #38a169;
}

.kth-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #c62828, #b71c1c);
  border: 1.5px solid #c62828;
}

.kth-btn:disabled {
  color: #fff;
  background: #cbd5e0;
  border-color: #cbd5e0;
  cursor: not-allowed;
}

.kth-hide {
  display: none !important;
}

.kth-alert-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.kth-alert-box {
  width: 90%;
  max-width: 520px;
  padding: 32px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.kth-alert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: #c62828;
  font-size: 28px;
  font-weight: 800;
  line-height: 56px;
  background: #fff5f5;
  border-radius: 50%;
}

.kth-alert-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.kth-alert-box p {
  margin: 0 0 20px;
  color: #4a5568;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .kth-grid-2,
  .kth-grid-3 {
    grid-template-columns: 1fr;
  }

  .kth-header h2 {
    font-size: 22px;
  }
}
