/* Enquiry form (app.egybekelnek.hu). Colors and fonts follow the marketing site's
   src/styles/tokens.css; keep them in sync by hand. */

@font-face {
  font-family: 'Raleway';
  src: url('fonts/raleway-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('fonts/raleway-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/ubuntu-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --color-plum: #822768;
  --color-coral: #f56c57;
  --color-cream: #f2e7d5;
  --color-ink: #4c3f54;
  --color-ink-muted: #6b6070;
  --color-red: #c0392b;
  --color-red-tint: #fdf0ee;
  --gradient-brand: linear-gradient(to bottom right, var(--color-plum), var(--color-coral));
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--gradient-brand) fixed;
  min-height: 100vh;
}

.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
}

@media (min-width: 600px) {
  .card {
    padding: 2.5rem 3rem;
  }
}

.logo {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
}

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--color-plum);
}

a {
  color: var(--color-plum);
}

.lead {
  margin: 0 0 1.5rem;
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
}

.optional,
.hint {
  font-weight: 400;
  color: var(--color-ink-muted);
}

.hint {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

input[type='text'],
input[type='email'],
input[type='date'],
textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #b9aebf;
  border-radius: var(--radius);
}

.hint + input,
.hint + textarea {
  margin-top: 0;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 2px;
}

[aria-invalid='true'] {
  border-color: var(--color-red);
  border-width: 2px;
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.6rem;
  align-items: start;
}

.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--color-plum);
}

.field--check .hint {
  grid-column: 2;
  margin-top: 0.15rem;
}

.field-error,
.form-error {
  color: var(--color-red);
  font-weight: 500;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
}

.form-error {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--color-red-tint);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

button {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #fff;
  background: var(--color-plum);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

button:hover {
  background: #6b1f55;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
}

.footer a {
  color: #fff;
}
