@charset "utf-8";
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-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;
}
.booking-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
    align-items: start;
}
.booking-panel {
    background: #f9fbfd;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.booking-panel h3 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #1e3a8a;
    border-bottom: 1px solid #e5edf5;
    padding-bottom: 8px;
}
.booking-panel:first-child .form-group {
    margin-bottom: 45px;
}
@font-face {
  font-family: 'SemperLogo';
  src: url('charlemagne-std-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
.brand-divider{
  margin: 26px 0 8px;
  text-align: center;
  position: relative;
  opacity: 0.9;
}
.brand-divider span{
  font-family: 'SemperLogo', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #3E5A9A;
  background: #f9fbfd;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}
.brand-divider::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #d9e3f0;
  z-index: 0;
}
.brand-divider img{
  height: 45px;
  max-width: 100%;
}
.price-box {
    margin: 24px auto 10px;
    max-width: 500px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}
.price-box .ar-sor {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.price-box .ar-sor.kisebb {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}
.price-box .ar-osszesen {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 8px;
}
.price-box .ar-osszesen strong {
    color: #16a34a;
}
#keresesi-talalatok {
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
}
.talalat {
  padding: 10px;
  cursor: pointer;
}
.talalat:hover {
  background: #eef6ff;
}
/* 📅 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);
}
.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;
    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;
  max-width: 500px;
}
.calendar-day-name {
  background: linear-gradient(to bottom, #e8f0ff, #d6e5fb);
  color: #2b3e58;
  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%;
  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;
  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);
}
.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: "☀️";
}
.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;
}
#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;
  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;
}
.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;
    color: #ffffff !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}
.hozzajarulas-box{
  max-width: 560px;
  margin: 24px auto 14px;
  padding: 12px 16px;
  font-size: 13px;
  border: 1px solid #e3e8ef;
  background: #fafcff;
  text-align: center;
  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;
}
.info-line{
  margin: 12px 0 22px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #eef6ff, #f8fbff);
  border-left: 4px solid #0078D4;
  border-radius: 8px;

  font-size: 16px;
  font-weight: 600;
  text-align: center;

  color: #1e3a8a;
  letter-spacing: 0.2px;
}
.ar-blokk{
  margin-top:12px;
  padding:14px 16px;
  background:#f8fafc;
  border:1px solid #dbeafe;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}
.ar-sor{
  font-size:14px;
  font-weight:600;
  margin-bottom:4px;
}
.ar-sor.kisebb{
  font-size:13px;
  opacity:0.85;
  font-weight:500;
}
.ar-elvalaszto{
  height:1px;
  background:#e2e8f0;
  margin:8px 0;
}
.ar-osszesen{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
}
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 87%;
  max-width: 420px; 
  background: #ffffff;
  border: none;
  border-top: 5px solid #118a8a;
  border-radius: 20px;
  padding: 40px 30px 30px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.popup-text {
  margin-bottom: 25px;
  text-align: left;
}
.alert-text {
  color: #d32f2f;
  font-weight: 800;
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.4;
}
.alert-sub {
  margin-top: 10px;
  padding: 12px 15px;
  border-left: 5px solid #f59e0b;
  background: #fffdf2;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0 !important;
  border: none !important;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50% !important;
  font-size: 1.2rem !important;
  color: #666 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease;
}
.close-btn:hover {
  background: #e0e0e0 !important;
  color: #000 !important;
}
.popup button:not(.close-btn) {
  display: inline-block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 25px;
  font-size: 1rem;
  font-weight: 700;
  background-color: #118a8a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(17, 138, 138, 0.2);
}
.popup button:not(.close-btn):hover {
  background-color: #0e7373;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 138, 138, 0.3);
}
.popup button:disabled {
  background-color: #ccc !important;
  box-shadow: none;
  cursor: not-allowed;
}
#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;
}
.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;
 }
#calendar {
   grid-template-columns: repeat(7, minmax(0, 1fr));
   gap: 4px;
   padding: 8px;
   min-width: 0;
   max-width: 100%;
 }
.calendar-day-name {
   height: 32px;
   font-size: 11px;
 }
.calendar-day-name.full {
    display: none;
 }
.calendar-day-name.short {
    display: flex;
    font-size: 10px;
    padding: 4px;
    height: 36px;
 }
.calendar-day {
    aspect-ratio: 1 / 1;
    font-size: 14px;
    border-radius: 12%;
 }

.calendar-wrapper {
    gap: 16px;
    margin-top: 12px;
  }
.calendar-wrapper > div,
.calendar-wrapper > div:first-child {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
 }
#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;
 }

.hozzajarulas-box {
   width: 100%;
   max-width: none;
   padding: 10px;
   font-size: 13px;
 }
.hozzajarulas-box input[type="checkbox"] {
   transform: scale(1);
 }
     .booking-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .booking-panel {
        padding: 14px;
    }
    .booking-panel h3 {
        font-size: 18px;
    }
    .price-box {
        margin-top: 18px;
        padding: 14px 16px;
    }
.calendar-day.saturday:hover,
.calendar-day.sunday:hover,
.calendar-day:hover {
  transform: none !important;
  box-shadow: none !important;
 }
}