@charset "utf-8";
/* Alapbeállítások */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #EDFDF8;
    margin: 0;
    padding: 0;
}
.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;
}
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
input,
select,
button,
textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    border-radius: 4px;
    box-sizing: border-box;
    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;         /* diszkrét kékesszürke */
  padding: 10px 14px;                /* belső térköz */
  border-radius: 6px;                /* lekerekített sarkok */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* finom árnyék */
}
.calendar-nav span {
  font-size: 13px;
  letter-spacing: 0.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);
}
.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-wrapper > div:first-child {
  flex: 1 1 460px; /* vagy 400–480px között, amennyi kell */
  max-width: 500px;
}
.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;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16%;
  font-size: 18px;
  font-weight: bold;
  border: 1px solid #b0b0b0; /* 💡 halvány szürkés kontúr */
  box-sizing: border-box;
}
.calendar-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.calendar-wrapper > div {
  flex: 1;
  min-width: 560px;
}
.calendar-day.empty {
    background-color: transparent;
    border: none;
    cursor: default;
}
.calendar-day.foglalt{
  background: repeating-linear-gradient(
    135deg, #ffe5e5 0 8px, #ffc8c8 8px 16px
  );
  color: #8a0000;
  border-color: #ff9c9c;
  pointer-events: none;
  opacity: .9;
}
.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.saturday.disabled,
.calendar-day.sunday.disabled {
  pointer-events: none;
  cursor: not-allowed;
}
.calendar-day.disabled,
.time-option.disabled {
  background-color: #e2e8f0;
  color: #a0aec0;
  pointer-events: none;
}

.calendar-day[data-nap="szombat"]::after {
  content: "😎";
}
.calendar-day[data-nap="vasarnap"]::after {
  content: "☀️";
}
/* Pozíció minden napnál */
.calendar-day::after {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 13px;
  opacity: 0.85;
  pointer-events: none;
}
.calendar-day.holiday{
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-color:#f1c40f;
  position: relative;
}
.calendar-day.holiday::after{
  content:"✨";
  position:absolute;
  top:4px;
  right:6px;
  font-size:14px;
  opacity:.9;
}

/* ✅ Kijelölt nap */
.selected {
    background-color: #87CEFA !important;
    color: white !important; /* Jobb kontraszt a kijelölt naphoz */
}
#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-options .is-taken{
  opacity:.35;
  pointer-events:none;
  filter: grayscale(1);
}

.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: #ffd6d6 !important;
  color: #b40000 !important;
  border-color: #ff8c8c !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: .9;
}
.time-option.foglalt{
  background: #ffd6d6 !important;
  color: #b40000 !important;
  border-color: #ff6b6b !important;
  position: relative;
  pointer-events: none;
}
.time-option.foglalt::after{
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  font-weight: 800; letter-spacing:.5px; opacity:.9;
}
.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;
}
.hozzajarulas-box{
  max-width: 560px;           /* 800 → 560 */
  margin: 24px auto 14px;     /* középre igazítás, kicsit kisebb térköz */
  padding: 12px 16px;         /* kompaktabb */
  font-size: 13px;            /* 14 → 13 */
  border: 1px solid #e3e8ef;  /* halványabb szegély */
  background: #fafcff;        /* picit világosabb háttér */
  text-align: center;         /* középre rendezett tartalom */
  border-radius: 10px;
}
.hozzajarulas-box input[type="checkbox"]{
  transform: scale(1.1);
  margin: 0 8px 0 0;
  vertical-align: middle;
}
.hozzajarulas-box a {
  color: #0078D4;
  font-weight: bold;
  text-decoration: none;
}
.hozzajarulas-box a:hover {
  text-decoration: underline;
}
#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;
}
.foglalas-gomb,
button.foglalas {
  display: block;
  margin: 12px auto 0;
  min-width: 180px;
}
#valasz {
  margin-top: 10px;
  font-size: 14px;
  color: red;
  text-align: center;
  min-height: 1em;
}
/* Kiválasztás kiemelése maradjon */
.calendar-day.selected{
  background: #2ABE3F !important;
  color: #fff !important;
  font-weight: 700;
}
.vizsgalat-ikon {
  font-size: 15px;
  margin-left: 4px;
  opacity: 0.9;
}
input,
select,
button,
textarea {
  width: 100%;
  box-sizing: border-box;
}
/* Nap foglaltsági fok jelölése */
.calendar-day.load25 { background:#D4F7D4; } /* kevés foglalás */
.calendar-day.load50 { background:#FFF4B8; } /* ~50% */
.calendar-day.load75 { background:#FFD9A6; } /* ~75% */
.calendar-day.load100{ background:#FFC1C1; border-color:#ff8a8a; } /* teltház */

@media screen and (max-width: 768px) {
  input,
  select,
  textarea,
  button {
    width: 100% !important;
    max-width: 100%;
 }
.container {
   width: 96%;
   margin: 12px auto;
   padding: 12px;
 }
.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;
 }
}