/* Karporta Service Form */
[x-cloak] { display: none !important; }
.ks-wrap {
  max-width: 640px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Success ──────────────────────────────────────────────────────── */
.ks-success {
  text-align: center;
  padding: 48px 24px;
}
.ks-success__icon {
  font-size: 52px;
  margin-bottom: 12px;
}
.ks-success h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.ks-success p {
  color: #555;
  margin: 0;
}

/* ── Photo zone ───────────────────────────────────────────────────── */
.ks-photo-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  background: #f8fafc;
  transition: border-color .2s, background .2s;
  cursor: pointer;
  margin-bottom: 24px;
}
.ks-photo-zone.ks-dragging {
  border-color: #d4a017;
  background: #fffbf0;
}
.ks-photo-zone.ks-has-photos {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
}
.ks-photo-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}
.ks-photo-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.ks-photo-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}
.ks-photo-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.ks-photo-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #1e293b;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.ks-photo-btn:hover { background: #334155; }
.ks-photo-counter {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

/* ── Thumbnails ───────────────────────────────────────────────────── */
.ks-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.ks-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}
.ks-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ks-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Form fields ──────────────────────────────────────────────────── */
.ks-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .ks-fields { grid-template-columns: 1fr; }
  .ks-thumb-grid { grid-template-columns: repeat(3, 1fr); }
}
.ks-field { display: flex; flex-direction: column; gap: 5px; }
.ks-field.ks-full { grid-column: 1 / -1; }
.ks-field label { font-size: 13px; font-weight: 500; color: #374151; }
.ks-field label .ks-req { color: #dc2626; }
.ks-field input,
.ks-field select,
.ks-field textarea {
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-size: 14px;
  transition: border-color .15s;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
}
.ks-field input:focus,
.ks-field select:focus,
.ks-field textarea:focus {
  outline: none;
  border-color: #d4a017;
}
.ks-field.ks-error input,
.ks-field.ks-error select {
  border-color: #dc2626;
}
.ks-field textarea { resize: vertical; min-height: 100px; }

/* ── Error message ────────────────────────────────────────────────── */
.ks-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── Submit ───────────────────────────────────────────────────────── */
.ks-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.ks-submit-btn {
  padding: 13px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  line-height: 1;
}
.ks-submit-btn.ks-btn-photo {
  background: #d97706;
  color: #fff;
}
.ks-submit-btn.ks-btn-photo:hover { background: #b45309; }
.ks-submit-btn.ks-btn-no-photo {
  background: #475569;
  color: #fff;
}
.ks-submit-btn.ks-btn-no-photo:hover { background: #334155; }
.ks-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}
.ks-no-photo-note {
  font-size: 12px;
  color: #94a3b8;
}
