* {
    scrollbar-width: thin;
    scrollbar-color: #adadad #dad7d700;
}

:root, :host {
  --primary: #1976d2;
  --border: #e5e7eb;
  --border-radius: 4px;
  --background: transparent;
  --text: #111827;
  --subtext: #6b7280;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow:hidden;
  box-sizing: border-box;
  padding:1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--background);
  color: var(--text);
}

.kwik-form {
  overflow:auto;
  width: 450px;
  padding: 48px 40px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: Inter, system-ui, -apple-system, sans-serif;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .kwik-form {
    width: 100%;
    padding: 1rem
  }
}


.kwik-form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  text-align: center;
}

.kwik-form-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.kwik-form-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  color: var(--text);
}
/* IMPORTANT: restores spacing after wrapper */

#kwik-form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kwik-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kwik-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.kwik-help {
  font-size: 12px;
  color: var(--subtext);
}

.kwik-input {
  height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.kwik-input {
  height: 44px;
}

textarea.kwik-input {
  height: 68px;
}

.kwik-input::placeholder {
  color: #9ca3af;
}

.kwik-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.2);
}

.kwik-button {
  height: 44px;
  margin-top: 8px;
  border-radius: var(--border-radius);
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.kwik-button:hover {
  filter: brightness(0.9)
}

.kwik-button:active {
  transform: translateY(1px);
  filter: brightness(0.8)
}

.kwik-success {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.kwik-success-message {
  font-size: 18px;
  color: var(--text);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}