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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  color: #1a1a2e;
}

.container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  width: 100%;
  max-width: 560px;
  padding: 2.5rem 2rem;
}

/* ── Header ──────────────────────────────────────────────────────── */
header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 400px;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1a1a2e;
}

.tagline {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.3rem;
}

/* ── Form ─────────────────────────────────────────────────────────── */
form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.optional {
  font-weight: 400;
  color: #999;
}

input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a1a2e;
  transition: border-color .15s;
  background: #fff;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: #5c6bc0;
  box-shadow: 0 0 0 3px rgba(92,107,192,.15);
}

.form-group > .hint {
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.1rem;
}

.input-suffix {
  display: flex;
  align-items: center;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.input-suffix:focus-within {
  border-color: #5c6bc0;
  box-shadow: 0 0 0 3px rgba(92,107,192,.15);
}

.input-suffix input {
  border: none;
  flex: 1;
  min-width: 0;
  box-shadow: none;
}

.input-suffix input:focus {
  box-shadow: none;
}

.input-suffix span {
  padding: 0 0.75rem;
  font-size: 0.9rem;
  color: #888;
  background: #f7f8fa;
  border-left: 1.5px solid #d0d5dd;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Moms-shortcuts */
.moms-shortcuts {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 20px;
  background: #f7f8fa;
  cursor: pointer;
  color: #555;
  transition: background .15s, border-color .15s;
}

.chip:hover {
  background: #eef0ff;
  border-color: #5c6bc0;
  color: #3949ab;
}

#kontoAnnat {
  margin-top: 0.4rem;
}

/* ── File drop ───────────────────────────────────────────────────── */
.file-drop {
  position: relative;
  border: 2px dashed #d0d5dd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  overflow: hidden;
}

.file-drop:hover,
.file-drop.drag-over {
  border-color: #5c6bc0;
  background: #f5f6ff;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-inner {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.file-drop-inner svg {
  width: 2.2rem;
  height: 2.2rem;
  color: #aaa;
}

.file-drop-inner p {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.file-drop-inner .link {
  color: #5c6bc0;
  text-decoration: underline;
}

.file-drop-inner .hint {
  font-size: 0.78rem;
  color: #aaa;
}

.file-preview {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.file-preview img {
  max-height: 180px;
  max-width: 100%;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #555;
}

#removeFile {
  background: none;
  border: none;
  color: #cc0000;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
}

/* ── Submit ──────────────────────────────────────────────────────── */
.btn-primary {
  margin-top: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #5c6bc0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.btn-primary:hover:not(:disabled) {
  background: #3949ab;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

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

/* ── Error ───────────────────────────────────────────────────────── */
.error-msg {
  padding: 0.75rem 1rem;
  background: #fff0f0;
  border: 1.5px solid #ffcccc;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #cc0000;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 1.5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}
