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

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f6f7f9;
}

header {
  background: #1e3a5f;
  color: #fff;
  padding: 1rem 1.5rem;
}

header a {
  color: #b8d4ff;
  margin-right: 1rem;
}

main {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.card {
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #c5ccd6;
  border-radius: 4px;
  font: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button {
  font: inherit;
  cursor: pointer;
}

button[type="submit"],
.btn-primary {
  background: #1e6bb8;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #eef2f7;
  color: #1a1a1a;
  border: 1px solid #c5ccd6;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
}

.consent label {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.consent input {
  width: auto;
  margin-top: 0.35rem;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2d3748;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 100;
}

#cookie-banner.hidden {
  display: none;
}

#form-feedback,
#modal-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  display: none;
}

#form-feedback.visible,
#modal-feedback.visible {
  display: block;
}

#form-feedback.success,
#modal-feedback.success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #a8dab5;
}

#form-feedback.error,
#modal-feedback.error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #f5c2c0;
}

dialog {
  border: 1px solid #dde2ea;
  border-radius: 8px;
  padding: 0;
  max-width: 520px;
  width: calc(100% - 2rem);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

dialog .dialog-body {
  padding: 1.5rem;
}

dialog header {
  background: transparent;
  color: inherit;
  padding: 0 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

dialog header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.fake-captcha {
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background: #f9f9f9;
  padding: 1rem;
  margin-bottom: 1rem;
  max-width: 320px;
}

.fake-captcha-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 2px;
}

.fake-captcha-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  border-radius: 4px;
  flex-shrink: 0;
}
