:root {
  --cta: #455b26;
  --bg: #ffffff;
  --text: #000000;
  --muted: #6b7280;
  --border: #000000;
  --header-img: url("https://flowfactory.hu/wp-content/uploads/2024/02/14.png");
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, sans-serif;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Typography */
.hero-title {
  margin: 0;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 600;
}

.section-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
}

label,
input,
select,
textarea,
button,
a {
  font-size: 19px;
  line-height: 1.3;
  font-family: inherit;
}

/* Header */
.hero {
  background-image: var(--header-img);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-inner {
  position: relative;
  padding: 28px 0;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

/* Form layout */
main {
  padding: 26px 0 10px;
}

form {
  display: grid;
  gap: 14px;
}

details.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: clip;
}

details.accordion>summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

details.accordion>summary::-webkit-details-marker {
  display: none;
}

.summary-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.summary-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.summary-spacer {
  flex: 1 1 auto;
}

.chev {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

details[open] .chev {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 16px 16px;
  display: grid;
  gap: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.required {
  color: var(--muted);
  font-size: 16px;
}

label .required {
  color: #e53935;
  /* piros */
  margin-left: 4px;
  font-weight: 600;
}

.form-help {
  font-size: 0.9rem;
  color: var(--muted-text, #6b7280);
  line-height: 1.6;
  margin: 0.75rem 0 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid #e5e7eb;
}

.form-note {
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  /* kékes info */
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #1f2937;
  line-height: 1.55;
  margin: 1rem 0;
}

/* Inputs - continuous 1px border */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(69, 91, 38, 0.2);
}

.hint {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.error {
  font-size: 15px;
  color: #b91c1c;
  margin: 0;
  display: none;
}

.error[aria-hidden="false"] {
  display: block;
}

/* Buttons */
.btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}

.btn-cta:hover {
  filter: brightness(1.06);
}

.btn-small {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 17px;
}

/* Color picker area */
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 34px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.color-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
}

.chip-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Objects section */
.objects-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.object-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.object-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.object-title {
  font-weight: 600;
}

details.mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: clip;
}

details.mini>summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

details.mini>summary::-webkit-details-marker {
  display: none;
}

.mini-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mini-body {
  padding: 0 12px 12px;
  display: grid;
  gap: 10px;
}

.mini-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--cta);
}

/* CTA row */
.cta-bar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  margin-top: 26px;
  background-image: var(--header-img);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.footer-inner {
  position: relative;
  padding: 18px 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  font-size: 15px;
  text-decoration: underline;
}
/* === EREDMÉNY DOBOZ (statikus) === */
#eredmeny {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;

  /* alapból ne villogjon, de legyen látható */
  min-height: 44px;
  display: block;
}

/* Ha teljesen üres, ne foglaljon túl nagy helyet */
#eredmeny:empty {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 0;
}

/* === ÁLLAPOTOK data-status alapján === */
#eredmeny[data-status="info"] {
  border-color: rgba(21, 101, 192, 0.35);
  background: rgba(21, 101, 192, 0.10);
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.18);
  position: relative;
  padding-left: 44px; /* hely a spinnernek */
}

/* “Történik valami” finom pulzálás */
#eredmeny[data-status="info"] {
  animation: ffPulse 1.2s ease-in-out infinite;
}

/* Kis spinner bal oldalt */
#eredmeny[data-status="info"]::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(21, 101, 192, 0.25);
  border-top-color: rgba(21, 101, 192, 0.80);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  animation: ffSpin 0.8s linear infinite;
}

@keyframes ffSpin { to { transform: translateY(-50%) rotate(360deg); } }

@keyframes ffPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

/* Siker */
#eredmeny[data-status="success"] {
  border-color: rgba(46, 125, 50, 0.35);
  background: rgba(46, 125, 50, 0.10);
  box-shadow: 0 10px 28px rgba(46, 125, 50, 0.16);
}

/* Hiba */
#eredmeny[data-status="error"] {
  border-color: rgba(198, 40, 40, 0.40);
  background: rgba(198, 40, 40, 0.10);
  box-shadow: 0 10px 28px rgba(198, 40, 40, 0.16);
}

/* Opcionális: ha szeretnéd, hogy success/error esetén is legyen ikon */
#eredmeny[data-status="success"],
#eredmeny[data-status="error"] {
  position: relative;
  padding-left: 44px;
}

#eredmeny[data-status="success"]::before,
#eredmeny[data-status="error"]::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

#eredmeny[data-status="success"]::before { content: "✓"; color: rgba(46, 125, 50, 0.95); }
#eredmeny[data-status="error"]::before { content: "⚠"; color: rgba(198, 40, 40, 0.95); }
