@charset "utf-8";
/* Alapbeállítások */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #EDFDF8;
    margin: 0;
    padding: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Formázások */
.form-group {
    margin-bottom: 15px;
}
.form-group input,
.form-group select {
    font-size: 13.5px;
    height: 38px;
    border-radius: 6px;
}
#csomag,
#vizsgalat {
    font-size: 13.5px;
    padding: 6px;
}
#csomag option,
#vizsgalat option {
    font-size: 13.5px;
}
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
input,
select,
button,
textarea {
    width: 100%; /* Javítva: calc(100% - 22px) helyett */
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    border-radius: 4px;
    /* box-sizing: border-box; - Ez globálisan van beállítva */
    margin-bottom: 8px;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #0056b3;
}
/* 📅 NAPTÁR STÍLUSOK */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background-color: #f2f7fb;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  min-width: 0;              /* fontos mobil overflow ellen */
}
.calendar-nav span { 
  font-size: 13px; 
  letter-spacing: .5px; 
}
#current-month {
  font-weight: 700 !important;
  font-size: 18px;
  color: #000;
  background-color: #f3f6fb;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  min-width: 0;              /* ne tolja szét a sort */
}
.calendar-day.hidden-by-filter {
    display: none;
}
.calendar-day-name.selected-filter {
    font-weight: bold;
    text-decoration: underline;
}
.calendar-day.aktiv-nap.nap-lezart {
    background-color: #dddddd !important;
    color: #888888 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border: 1px solid #bbb !important;
}
.calendar-nav button {
    width: auto; /* Automatikus szélesség a tartalomhoz igazodva */
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.calendar-nav button:hover {
    background-color: #ddd;
}
.calendar-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 70px);
  gap: 6px;
  width: 100%;
  max-width: none;
  min-width: 400px;
  background-color: #eef6fb;
  padding: 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}
.calendar-day-name {
  background: linear-gradient(to bottom, #e8f0ff, #d6e5fb);
  color: #2b3e58; /* Mélyebb kékesszürke – jól olvasható */
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  height: 42px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  border: 1px solid #c0d0e5;
}
.calendar-day {
  width: 100%; /* veszi az oszlop szélességét */
  aspect-ratio: 1 / 1;
  background-color: #A4F5B5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16%;
  position: relative;
  font-size: 18px;
  font-weight: bold;
  border: 1px solid #b0b0b0; /* 💡 halvány szürkés kontúr */
  box-sizing: border-box;
}
.calendar-day-name.full {
  display: inline-block;
  padding: 6px 8px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  user-select: none; /* Ne lehessen kijelölni véletlenül */
}
.calendar-day-name.full:hover {
  background-color: #cce4ff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
  cursor: pointer;
  color: #004085; /* Kicsit mélyebb kék a szövegnek */
}
.calendar-day-name.full.active {
  background-color: #007bff;
  color: white;
  box-shadow: 0 8px 15px rgba(0, 123, 255, 0.7);
  transform: translateY(-2px) scale(1.1);
  font-weight: 700;
}
.calendar-day-name.short {
  display: none;
}
.calendar-day.aktiv-nap:hover {
  background-color: #1e7e34; /* sötétebb zöld */
  box-shadow: 0 0 10px rgba(30, 126, 52, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.calendar-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.calendar-wrapper > div:first-child {
  flex: 1 1 520px;
  max-width: 560px;
}
.calendar-wrapper > div {
  flex: 1;
  min-width: 560px;
}
.calendar-day.empty {
    background-color: transparent;
    border: none;
    cursor: default;
}
.calendar-day.saturday {
  background: linear-gradient(135deg, #C4EFFD 0%, #8AD6FF 100%);
  box-shadow: 0 4px 10px rgba(0, 150, 255, 0.3);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.calendar-day.saturday:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 150, 255, 0.6);
}
.calendar-day.sunday {
  background: linear-gradient(135deg, #FFBFBF 0%, #FF7A7A 100%);
  box-shadow: 0 4px 10px rgba(255, 80, 80, 0.3);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.calendar-day.sunday:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(255, 80, 80, 0.6);
}
/* Egy kis kis nap emoji is bekerülhet a vasárnap napokba */
.calendar-day.sunday::after {
  content: "☀️";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  pointer-events: none;
}
.calendar-day:hover {
    cursor: pointer;
    background-color: #c0eaff;
}
.calendar-day.disabled {
    background-color: #e2e8f0;
    color: #a0aec0;
    pointer-events: none;
}
.calendar-day.van-foglalas {
  background: linear-gradient(to bottom, #e9fbe9, #c8eac8);
  border: 2px solid #4CAF50;
  position: relative;
}
.calendar-day.van-foglalas::after {
  content: "📌";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
}
.aktiv-nap {
    background-color: #28a745 !important;
    color: white;
    border-radius: 8px;
}
.inaktiv-nap {
    opacity: 0.3;
    pointer-events: none;
}
.calendar-day.aktiv-nap:not(.saturday):not(.sunday)::after {
  content: "🩺";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  pointer-events: none;
}
.nap-szam {
  font-size: 18px;
  font-weight: bold;
}
.emoji {
  font-size: 16px;
  margin-top: 2px;
}
.calendar-day .nap-szam {
  font-weight: bold;
}
.calendar-day .emoji {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 14px;
  pointer-events: none;
}
.calendar-day.hetfo::after {
  content: "💙";
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 14px;
  pointer-events: none;
}
.calendar-day.kedd::after {
  content: "💛";
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 14px;
  pointer-events: none;
}
.calendar-day.szerda::after {
  content: "💚";
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 14px;
  pointer-events: none;
}
.calendar-day.csutortok::after {
  content: "🧡";
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 14px;
  pointer-events: none;
}
.calendar-day.pentek::after {
  content: "💜";
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 14px;
  pointer-events: none;
}
/* ✅ Kijelölt nap */
.selected {
    background-color: #87CEFA !important;
    color: white !important;
}
#idopont-container label {
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    display: block;
}
/* 🕒 IDŐPONTOK STÍLUSOK */
#idopont-container {
    background-color: #eef6fc;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 320px;
  margin-top: 70px;
}
#time-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 💡 4 oszlop */
  gap: 6px;
  justify-content: center;
}
.time-option {
  padding: 6px 0;
  height: 40px; /* 💡 kompakt méret */
  background-color: #E6F8EA;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  border: 2px solid #ccc;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}
.time-option:hover {
  background-color: #f0f8ff;
  border-color: #007bff;
  color: #007bff;
}
.time-option.selected {
  background-color: #007bff !important;
  color: white !important;
  font-weight: bold;
  border: 2px solid #0056b3;
}
/* Javítva: Foglalt és letiltott időpontok konszolidált stílusa */
.time-option.foglalt,
.time-slot.foglalt,
.time-option.foglalt-ekg {
    background: #E01919 !important;
    color: #fff !important;
    cursor: not-allowed;
    pointer-events: none; /* Ne lehessen rákattintani */
    opacity: 0.7; /* Kis áttetszőség, hogy látszódjon a tiltás */
}
.time-option.disabled {
    background-color: #B42213 !important; /* sötétvörös */
    color: #ffffff !important; /* fehér betű */
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}
.time-option.hidden{
  display: none !important;
}
.hozzajarulas-box {
    margin-top: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 14px 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}
.hozzajarulas-box input[type="checkbox"] {
    transform: scale(1.1);
    margin-right: 8px;
}
.hozzajarulas-box a {
    color: #0078D4;
    font-weight: bold;
    text-decoration: none;
}
.hozzajarulas-box a:hover {
    text-decoration: underline;
}
.calendar-day[data-tooltip] {
  position: relative;
  cursor: help;
}
.calendar-day[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  left: 0;
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
}
.calendar-day.exception-off { outline: 2px dashed #d33; }
.calendar-day.exception-on  { outline: 2px dashed #3a7; }
/* Lemondott nap (piros árnyalat, áthúzott hatás) */
.calendar-day.exception-off {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  position: relative;
}
.calendar-day.exception-off::after {
  content: "✖"; 
  position: absolute; 
  top: 2px; right: 4px;
  font-size: 12px; color: #721c24;
}

/* Áthelyezett nap (zöld árnyalat, kis nyíl ikon) */
.calendar-day.exception-on {
  background-color: #AE7EEF !important;
  color: #155724 !important;
  position: relative;
  border: 2px dashed #28a745;
}
.calendar-day.exception-on::after {
  content: "➜" !important;
  pointer-events: none;
  transition: opacity 0.2s;
  border-radius: 4px;
  white-space: nowrap;
  position: absolute; 
  top: 2px; right: 4px;
  font-size: 14px; color: #155724;
}
.calendar-day.exception-on:hover::after {
  opacity: 1;
}
#foglalas {
    margin: 20px auto;
    padding: 12px 24px;
    display: block;
    font-size: 16px;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    border: none;
    width: fit-content;
}
#valasz {
    margin-top: 10px;
    font-size: 14px;
    color: red;
    text-align: center;
    min-height: 1em;
}
#ora-csuszka-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #fefefe;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.csuszka-sor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ido-label {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}
#ora-csuszka {
    flex: 1;
    height: 6px;
    appearance: none;
    background-color: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
#ora-csuszka::-webkit-slider-thumb {
    appearance: none;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid black; /* lefelé mutató nyíl */
    margin-top: -3px;
    cursor: pointer;
}
#ora-csuszka::-moz-range-thumb {
    background: transparent; /* eltünteti a fehér kör hátteret */
    border: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid black;
    width: 0;
    height: 0;
    border-radius: 0;
    cursor: pointer;
}
.csuszka-tooltip-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}
.tooltip {
    position: absolute;
    top: -35px;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: lebeges 2s ease-in-out infinite alternate;
    transition: left 0.25s ease-out, opacity 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
@keyframes lebeges {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-4px); }
}
.tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    appearance: none;
    background: linear-gradient(
        to right,
        #1e3a5f 0%,              /* Éjjel */
        #1e3a5f 16.66%,
        #3949ab 16.66%,          /* Hajnal */
        #3949ab 25%,
        #4caf50 25%,             /* Reggel */
        #4caf50 33.33%,
        #81c784 33.33%,          /* Délelőtt */
        #81c784 50%,
        #ff9800 50%,             /* Délután */
        #ff9800 75%,
        #757575 75%,             /* Este */
        #757575 100%
    );
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid black; /* nyíl lefelé */
    margin-top: -3px;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid black;
    cursor: pointer;
}

/* Kiválasztás kiemelése maradjon */
.calendar-day.selected {
    background-color: #2ABE3F !important;
    color: white !important;
    font-weight: bold;
}
.vizsgalat-ikon {
    font-size: 15px;
    margin-left: 4px;
    opacity: 0.9;
}
/* --- MOBIL FINOMHANGOLÁS (≤768px) --- */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

.container {
   width: 96%;
   margin: 12px auto;
   padding: 12px;
 }
 /* naptár navigáció: törhet, kisebb padding */
.calendar-nav {
   flex-wrap: wrap;
   gap: 6px;
   padding: 8px 10px;
   min-width: 0;
 }
#current-month {
   order: 2;
   flex: 1 1 100%;
   text-align: center;
   font-size: 16px;
   padding: 6px 10px;
 }
.calendar-nav button {
   flex: 1 1 auto;
   padding: 6px 10px;
   font-size: 14px;
 }
 /* rács: ne legyen fix min-width, arányos cellák */
#calendar {
   grid-template-columns: repeat(7, minmax(0, 1fr));
   gap: 4px;
   padding: 8px;
   min-width: 0;         /* <<< fontos */
   max-width: 100%;
 }
.calendar-day-name {
   height: 32px;
   font-size: 11px;
 }
.calendar-day-name.full {
    display: none; /* 🚫 Rejtse el a teljes napneveket */
 }
.calendar-day-name.short {
    display: flex; /* ✅ Jelenítse meg a rövidített napneveket */
    font-size: 10px;
    padding: 4px;
    height: 36px;
 }
.calendar-day {
    aspect-ratio: 1 / 1;
    font-size: 14px;
    border-radius: 12%;
 }
  /* bal/jobb hasábok: ne legyen 560px-es kényszer */
.calendar-wrapper {
    gap: 16px;
    margin-top: 12px;
  }
.calendar-wrapper > div,
.calendar-wrapper > div:first-child {
    flex: 1 1 100%;
    min-width: 0;         /* <<< fontos */
    max-width: 100%;
 }
  /* időpontok rácsa: 3 oszlop mobilon */
#idopont-container {
    margin-top: 12px;
    padding: 12px;
    min-width: 0;
 }
#time-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
.time-option {
   height: 36px;
   font-size: 12px;
   padding: 4px 0;
 }
 /* hozzájárulás doboz: teljes szélesség, nincs max-width */
.hozzajarulas-box {
   width: 100%;
   max-width: none;
   padding: 10px;
   font-size: 13px;
 }
.hozzajarulas-box input[type="checkbox"] {
   transform: scale(1);
 }
  /* erős hover effektek letiltása mobilon (ne „ugráljon”) */
.calendar-day.saturday:hover,
.calendar-day.sunday:hover,
.calendar-day:hover {
  transform: none !important;
  box-shadow: none !important;
 }
}