/* === Alapstílusok és betűtípus === */
@font-face {
  font-family: 'calibri';
  <link rel="stylesheet"
  href="https://fonts.googleapis.com/css?family=calibri">
  font-weight: normal;
  font-style: normal;
}

body {
  background-image: url("Plalya-palmeras3.jpeg");
  background-size: 100%;
  background-color: #f3f4f6;
  color: #fff;
  margin: 0;
  padding: 0;
  font-family: 'calibri', sans-serif;
}

/* === Fejléc === */
header {
  background-image: url("mar1.jpeg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 20px;
  min-height: 100px;
  border-radius: 5px;
  text-align: center;
  font-size: 1.2em;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* === Heti navigáció === */
.weekNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 10px;
}

#currentWeekLabel {
  /*font-weight: bold;*/
}

/* === Időtartam gombok === */
.booking-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.option-button {
  background-color: #5588cc59;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 120px;
}

.option-button.active,
.option-button:hover {
  background-color: #5588ccf0;
  border: 1.5px solid #2d9cdb;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* === Heti naptár GRID (hétfő–péntek) === */
#calendarGrid,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1rem;
  margin: 0 auto;
  max-width: 1500px;
  box-sizing: border-box;
}

.day-column {
  background: #ffffff50;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.day-header {
  background: #d1d5db;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding: 4px;
  margin-bottom: 4px;
}

.day-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 60vh;
  box-sizing: border-box;
  overflow: hidden;
  contain: layout;
}

/* === Időpont gombok === */
.time-slot {
  background: #5588cc;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.time-slot:hover {
  background: #5588ccbf;
  border-color: #0078ff;
}

.time-slot.booked {
  background: #f7a4a464;
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}

/* === Múltbeli napok === */
.past-day {
  opacity: 0.5;
  pointer-events: none;
}

/* === Foglalási portál (popup/modal) === */
.portalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.dialogBox {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.dialogBox h3 {
  margin-top: 0;
  color: #2d9cdb;
  text-align: center;
}

label {
  display: block;
  margin: 0.5rem 0;
}

input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

button {
  background-color: #5588cc59;
  color: white;
  border: 1.5px double #ddd;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #5588cc;
  border: 1.8px solid black;
}

/* Bezáró gomb */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

.close-btn:hover {
  color: #2d9cdb;
}

/* === STRIPE fizetési mezők === */
#stripe-card-element {
  background-color: #f8f9fa;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 15px 0;
}

#stripe-card-errors {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

#paidConsultationSection {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

#priceDisplay {
  font-weight: bold;
  color: #2d9cdb;
}

/* === Mobil nézet (reszponzív) === */
@media (max-width: 768px) {
  .calendar-grid,
  #calendarGrid {
    grid-template-columns: 1fr 1fr;
  }

  header {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .dialogBox {
    width: 95%;
    padding: 1rem;
  }

  .option-button {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 500px) {
  .calendar-grid,
  #calendarGrid {
    grid-template-columns: 1fr;
  }
}