/* Megrendelő form stílusai - minden class "megrendeles-" prefixet kapott,
   hogy ne ütközzön a fő sablon saját CSS osztályaival. */

.megrendeles-container {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #222;
    line-height: 1.5;
}
.megrendeles-container * { box-sizing: border-box; }
.megrendeles-container h1 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 8px;
}
.megrendeles-subtitle {
    color: #666;
    margin-bottom: 32px;
    font-size: 15px;
}
.megrendeles-container fieldset {
    border: none;
    border-top: 1px solid #e5e5e5;
    padding: 24px 0;
    margin: 0 0 8px 0;
}
.megrendeles-container fieldset:first-of-type { border-top: none; padding-top: 0; }
.megrendeles-container legend {
    font-weight: 600;
    font-size: 16px;
    padding: 0;
    margin-bottom: 16px;
    width: 100%;
}
.megrendeles-container label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    margin-top: 16px;
}
.megrendeles-container label:first-of-type { margin-top: 0; }
.megrendeles-container input[type="text"],
.megrendeles-container input[type="email"],
.megrendeles-container input[type="number"],
.megrendeles-container select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}
.megrendeles-container input:focus,
.megrendeles-container select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.megrendeles-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}
.megrendeles-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
.megrendeles-checkbox-group input { width: auto; margin: 0; }
.megrendeles-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.megrendeles-container button[type="submit"] {
    width: 100%;
    margin-top: 32px;
    padding: 14px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.megrendeles-container button[type="submit"]:hover { background: #4338ca; }
.megrendeles-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}
.megrendeles-error-box ul { margin: 8px 0 0 0; padding-left: 20px; }
.megrendeles-success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 15px;
}
/* Honeypot - vizuálisan elrejtve, de bot-ok kitölthetik */
.megrendeles-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ============================================
   Wizard (lépésdő form) logika - 3 lépéses megrendelő
   ============================================ */

/* Alapból minden lépés rejtve, csak az .active látszik */
.urlap[data-num] {
    display: none;
}
.urlap[data-num].active {
    display: block;
}

.urlap-gombok {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

/* Ha csak egy gomb van egy sorban (pl. csak "Következő" az 1. lépésben),
   tegyük jobbra igazítva */
.urlap-gombok:has(> button:only-child) {
    justify-content: flex-end;
}

.urlap-gombok button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.urlap-gombok .urlap-tovabb,
.urlap-gombok button[type="submit"] {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
.urlap-gombok .urlap-tovabb:hover,
.urlap-gombok button[type="submit"]:hover {
    background: var(--bs-secondary);
}

.urlap-gombok .urlap-vissza {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
.urlap-gombok .urlap-vissza:hover {
    background: var(--bs-secondary);
}

/* Összegző nézet (3. lépés) szövegei */
.urlap-3 span {
    font-weight: 600;
}

/* CHECKBOX */
.megrendeles-checkbox-group label {
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.megrendeles-checkbox-group label input[type=checkbox] {
  width: 0px;
  height: 0px;
  overflow: hidden;
  opacity: 0;
  position: absolute;
}

.megrendeles-checkbox-group label::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: #50B2A9;
  display: inline-block;
}

.megrendeles-checkbox-group label:has(input:checked)::before  {
  background-color: var(--bs-white);
}
