:root {
  --primary: #c49b3a;
  --primary-dark: #a9852f;
  --secondary: #2c3e50;
  --light: #f8f5f1;
  --white: #ffffff;
  --text: #333333;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Playfair Display", serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

/* Hero Section */
.hero {
  text-align: center;
  color: white;
  padding: 150px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
              url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1200&q=60')
              center/cover;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23c49b3a' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 32px;
  border-radius: 30px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(196, 155, 58, 0.3);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196, 155, 58, 0.4);
}

.hero-info {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.8;
}

/* Why Section */
.block3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  text-align: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .block3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-box {
  padding: 30px 20px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.icon-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.icon-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.icon-box:hover:before {
  transform: scaleX(1);
}

.icon-box h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.icon-box p {
  font-size: 1rem;
  line-height: 1.6;
}

.why-conclusion {
  text-align: center;
  margin-top: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Steps Section */
.steps {
  display: grid;
  gap: 25px;
  margin-top: 40px;
}

.step {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.step:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.step strong {
  font-size: 1.1rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonials-container {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.testimonials {
  background: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

.testimonials:hover {
  transform: translateY(-5px);
}

.testimonials:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonials p {
  padding-left: 20px;
  font-style: italic;
}

.testimonial-author {
  margin-top: 15px;
  text-align: right;
  font-weight: 600;
  color: var(--primary);
}

/* Calendar Section */
.calendar-container {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-nav:hover {
  background: var(--primary-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.calendar-day-header {
  text-align: center;
  font-weight: bold;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.calendar-day {
  position: relative;
  min-height: 60px;
  text-align: center;
  padding: 15px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #eee;
  font-size: 1.2em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.calendar-day:hover {
  background: #f0f0f0;
}

.calendar-day.disabled {
  color: #474747;
  cursor: not-allowed;
  background: #f9d6d673;
}

.calendar-day.available {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, #f8f5f1 0%, #e9ecef 100%);
  border-color: #c49b3a;
  box-shadow: 0 4px 8px rgba(196, 155, 58, 0.1);
  transform: scale(1.05);
}

.calendar-day.fully-booked {
  background-color: rgba(191, 253, 183, 0.3);
  opacity: 0.55;
  position: relative;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #c49b3a 0%, #a9852f 100%) !important;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(196, 155, 58, 0.3);
  border: 2px solid #c49b3a;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

.calendar-day.today {
  border: 2px solid var(--primary);
}

.day-number {
  font-weight: bold;
  font-size:1.3em;
}

.calendar-day.selected .day-number {
  font-weight: bold;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Booking Badge Styles */
.booking-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
    border-radius: 50%;
    padding: 4px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    min-height: 20px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.calendar-day.fully-booked .booking-badge {
  background: #27ae60;
}

.calendar-day.available .booking-badge {
  background: #27ae60;
  color: white !important;
}

.calendar-day.selected .booking-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #c49b3a;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Time Slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.time-slot {
  padding: 12px 8px;
  text-align: center;
  background: #ffffff;
  border: 2px solid #68d998;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.time-slot:not(.disabled):hover {
  background: #c49b3a;
  color: white;
  border-color: #c49b3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(196, 155, 58, 0.2);
}

.time-slot.selected {
  background: linear-gradient(135deg, #c49b3a 0%, #a9852f 100%) !important;
  color: white;
  border-color: #c49b3a;
  transform: scale(1.05);
}

.time-slot.disabled {
    background: #f9d6d673;
    color: #6c757d;
    cursor: not-allowed;
    border: 2px solid #ebb1b1;
    opacity: 0.7;
}

/* Booking Form */
.form-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.input-group {
  margin-bottom: 20px;
}

input, select {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: var(--transition);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 155, 58, 0.1);
  transform: translateY(-1px);
}

.payment-info {
  background: #f9f5eb;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid var(--primary);
}

.payment-info h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.payment-info ul {
  padding-left: 20px;
}

.payment-info li {
  margin-bottom: 8px;
}

/* Trust */
.trust-list {
  list-style: none;
  margin-top: 30px;
}

.trust-list li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 40px;
}

.trust-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 15px;
  width: 25px;
  height: 25px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Closing */
.closing {
  text-align: center;
  padding: 60px 20px;
  background: var(--secondary);
  color: white;
  border-radius: 12px;
  margin-top: 40px;
}

.closing h2 {
  color: white;
}

.closing h2:after {
  background: white;
}

.closing p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
}

.floating-cta .btn {
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  padding: 12px 24px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Success Message */
.success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #28a745;
}

/* Payment Status */
.payment-status {
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.payment-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.payment-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Error Box */
.error-box {
  background: #ffe5e5;
  border: 1px solid #ffb3b3;
  color: #a30000;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-box i {
  font-size: 20px;
  animation: fadeIn 0.3s ease;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.time-slots.loading {
  opacity: 0.7;
  pointer-events: none;
}

.time-slots.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #c49b3a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  section {
    padding: 60px 15px;
  }
  
  .hero {
    padding: 100px 15px;
  }
  
  .icon-box, .step, .testimonials {
    padding: 20px 15px;
  }
  
  .form-box, .calendar-container {
    padding: 20px;
  }
  
  .calendar-grid {
    gap: 5px;
  }
  
  .calendar-day {
    padding: 10px 5px;
    min-height: 70px;
  }
  
  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .time-slot {
    padding: 10px 5px;
    font-size: 0.9rem;
  }
  
  .booking-badge {
	font-size: 10px;
	padding: 2px 4px;
	/* bottom: 3px; */
	right: 3px;
  }
}

html { 
  scroll-behavior: smooth;
}

#currentMonth {
  font-size: 2em;
}

footer {
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  padding-top: 50px;
  max-width: 900px;
  margin-top: 50px;
  border: none;
}


/* Calendar Section - MOBIL JAVÍTÁS */
.calendar-container {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 30px;
  overflow-x: auto; /* Biztonsági görgetés */
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  min-width: 300px; /* Minimum szélesség */
}

.calendar-day-header {
  text-align: center;
  font-weight: bold;
  padding: 8px 4px;
  background: #f5f5f5;
  border-radius: 5px;
  font-size: 12px;
}

.calendar-day {
  position: relative;
  min-height: 50px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #eee;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* MOBIL SPECIFIKUS JAVÍTÁSOK */
@media (max-width: 480px) {
  .calendar-container {
    padding: 15px 10px;
    margin: 20px -10px; /* Kis kitöltés a széleknél */
  }
  
  .calendar-grid {
    gap: 4px;
    min-width: 280px;
  }
  
  .calendar-day-header {
    padding: 6px 2px;
    font-size: 11px;
  }
  
  .calendar-day {
    min-height: 45px;
    padding: 6px 2px;
    font-size: 0.9em;
  }
  
  .day-number {
    margin-top: 4px;
    font-size: 0.9em;
  }
  
  
  #currentMonth {
    font-size: 1.4em !important;
    text-align: center;
    margin: 0 10px;
  }
  
  .calendar-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .calendar-nav {
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .calendar-grid {
    gap: 2px;
    min-width: 260px;
  }
  
  .calendar-day {
    min-height: 40px;
    padding: 4px 1px;
    font-size: 0.85em;
  }
  
  .calendar-day-header {
    font-size: 10px;
    padding: 4px 1px;
  }
}

/* Biztosítjuk, hogy a konténer ne lógjon ki */
section {
  padding: 80px 15px;
  max-width: 1200px;
  margin: auto;
  overflow: hidden; /* Megakadályozza a túlcsordulást */
}

@media (max-width: 768px) {
  section {
    padding: 60px 10px;
  }
  
  .booking-badge {
    display:none
  }
}

/* Time slots mobil optimalizálás */
@media (max-width: 480px) {
  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
  }
  
  .time-slot {
    padding: 8px 4px;
    font-size: 12px;
  }
}

/* Form mobil optimalizálás */
@media (max-width: 480px) {
  .form-box {
    padding: 20px 15px;
  }
  
  input, select {
    padding: 12px;
    font-size: 16px; /* iOS zoom elkerülése */
  }
}