*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  padding: 2rem 1.5rem;
}

.accordion-item {
  background-color: #111111;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item:hover {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e22;
}

.accordion-item.open {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e33;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  user-select: none;
}

.accordion-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #f0f0f0;
}

.accordion-item.open .accordion-label {
  color: #22c55e;
}

.accordion-arrow {
  width: 18px;
  height: 18px;
  color: #555;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
  color: #22c55e;
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

.accordion-content {
  padding: 0 28px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #888;
  border-top: 1px solid #1e1e1e;
  padding-top: 18px;
}

.accordion-item.open .accordion-content {
  border-top-color: #22c55e22;
}

-----------------------------------

checkbox-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #0a0a0a;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.checkbox-row input[type="checkbox"]:checked {
  background: #22c55e;
  border-color: #22c55e;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1,4 4,7 9,1' fill='none' stroke='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-row:hover label {
  color: #aaa;
}

.checkbox-row input[type="checkbox"]:hover {
  border-color: #22c55e;
}

.start-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  background: #22c55e;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}

.start-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.start-btn:hover {
  background: #16a34a;
}

/* ── Urlap oldal ───────────────────────────────────────────────── */

.urlap-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background-color: #0a0a0a;
}

.urlap-card {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 20px;
  padding: 48px 52px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 0 60px #22c55e0d, 0 0 0 1px #22c55e11;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.urlap-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 8px;
}

.urlap-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* ── Kérdés blokk ────────────────────────────────────────────── */

.kerdes-blokk {
  margin-bottom: 28px;
}

/* 
  ═══════════════════════════════════════════════
  ITT TUDOD MEGADNI A KÉRDÉSEKET:
  A <label> szövegét írd át a kérdésedre.
  ═══════════════════════════════════════════════
*/

.kerdes-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

/* 
  ═══════════════════════════════════════════════
  ITT TUDOD ÁLLÍTANI AZ INPUT MEZŐKET:
  - placeholder="..." → példaszöveg halványan
  - data-minchar="20" → minimális karakterszám
  - name="kerdes_1"   → az SQL oszlop neve
  ═══════════════════════════════════════════════
*/

.urlap-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  color: #f0f0f0;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  line-height: 1.6;
}

.urlap-input::placeholder {
  color: #444;
}

.urlap-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px #22c55e15;
}

.char-counter {
  font-size: 11px;
  margin-top: 5px;
  text-align: right;
  color: #444;
  transition: color 0.2s;
}

.char-counter.invalid {
  color: #ef4444;
}

.char-counter.valid {
  color: #22c55e;
}

/* ── Következő gomb ───────────────────────────────────────────── */

.next-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  background: #22c55e;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}

.next-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.next-btn:hover {
  background: #16a34a;
}

/* ── Beküldés modal ───────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0acc;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #111;
  border: 1px solid #22c55e33;
  border-radius: 16px;
  padding: 40px 44px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  box-shadow: 0 0 40px #22c55e11;
}

.modal-overlay.visible .modal-box {
  transform: scale(1);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.7;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.modal-btn.igen {
  background: #22c55e;
  color: #0a0a0a;
}

.modal-btn.igen:hover {
  background: #16a34a;
}

.modal-btn.nem {
  background: #1a1a1a;
  color: #aaa;
  border: 1px solid #2a2a2a;
}

.modal-btn.nem:hover {
  background: #222;
}