/* bookings.css - Spójna stylizacja z Pure Esthetic */

/* Zmienne kolorystyczne */
:root {
  --primary-color: #d4af8a;
  --secondary-color: #a2836e;
  --dark-color: #1a1a1a;
  --light-color: #f8f1e9;
  --accent-color: #e8c8b0;
  --text-color: #333;
  --white: #fff;
  --gold-light: #e6d5b8;
  --gold-dark: #b89b72;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Reset i style podstawowe */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
  padding-top: 80px;
  padding-bottom: 140px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--dark-color);
}

/* Nagłówek */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  height: 80px;
}

.header-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.2rem;
  transition: var(--transition);
}

.logo-link:hover {
  color: var(--primary-color);
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: var(--dark-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Główny kontener */
.main-container {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 40px;
  max-width: 800px;
  width: 95%;
  margin: 30px auto;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  position: relative;
  text-align: center;
  color: var(--dark-color);
}

h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 15px auto 30px;
}

/* Formularz rezerwacji */
form {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 1rem;
}

/* Usługi */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.service {
  padding: 15px;
  border-radius: 8px;
  background: var(--light-color);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--gold-light);
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.service h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.service p {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.service.selected {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.service.selected h3,
.service.selected p {
  color: var(--white);
}

/* Kalendarz */
.calendar-container {
  margin-bottom: 30px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 15px;
  transition: var(--transition);
}

.calendar-header button:hover {
  color: var(--gold-dark);
}

#currentMonth {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-color);
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-header {
  text-align: center;
  font-weight: 500;
  padding: 10px;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.day {
  text-align: center;
  padding: 12px 5px;
  cursor: pointer;
  border-radius: 5px;
  background: var(--light-color);
  transition: var(--transition);
  position: relative;
}

.day:hover:not(.disabled):not(.empty) {
  background: var(--primary-color);
  color: var(--white);
}

.day.selected {
  background: var(--primary-color);
  color: var(--white);
}

.day.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #f5f5f5;
}

.day.weekend {
  background-color: rgba(212, 175, 138, 0.1);
  color: var(--secondary-color);
}

.day.empty {
  visibility: hidden;
}

.day-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

/* Godziny */
.time-slots {
  margin-bottom: 30px;
}

.time-slots .times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.time-slots .time {
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  background: var(--light-color);
  transition: var(--transition);
  font-size: 0.9rem;
  border: 1px solid var(--gold-light);
}

.time-slots .time:hover:not(.disabled) {
  background: var(--primary-color);
  color: var(--white);
}

.time-slots .time.disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  border-color: #eee;
}

.time-slots .time.selected {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Pola formularza */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gold-light);
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 138, 0.2);
}

/* Przycisk */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--dark-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
}

.submit-btn:hover {
  background: transparent;
  color: var(--primary-color);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--gold-light);
}

/* Stopka */
.contact-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 15px 0;
  z-index: 1000;
  text-align: center;
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-footer p {
  font-size: 0.95rem;
  color: var(--dark-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--primary-color);
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Przycisk powrotu */
.back-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: var(--primary-color);
  color: var(--dark-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

/* Komunikaty */
.message {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 30px;
    border-radius: 10px;
    z-index: 10000;
    max-width: 90%;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    animation: messageIn 0.4s ease-out;
}

.message-celebration {
    animation: pulse 0.8s infinite alternate;
}

/* CONFETTI */
.confetti-particle {
    position: fixed;
    top: -10px;
    width: 12px;
    height: 12px;
    opacity: 0.9;
    z-index: 9999;
    animation: confettiFall linear forwards;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-40px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.05); }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Cooldown display */
#cooldownDisplay {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 0.8rem;
  color: var(--secondary-color);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

/* Responsywność */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
    padding-bottom: 130px;
  }
  
  .message {
    min-width: 250px;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .contact-footer {
    padding: 12px 0;
  }
  
  .contact-info {
    gap: 12px;
    flex-direction: column;
  }
  
  .contact-info span {
    font-size: 0.9rem;
  }

  .main-container {
    padding: 30px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .services {
    grid-template-columns: 1fr;
  }
  
  .time-slots .times {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
  
  .back-button {
    width: 45px;
    height: 45px;
    bottom: 85px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 20px 15px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .calendar-header button {
    padding: 5px 10px;
  }
  
  .day {
    padding: 8px 2px;
    font-size: 0.8rem;
  }
  
  .day-header {
    font-size: 0.8rem;
    padding: 5px;
  }
  
  .time-slots .times {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
  
  .contact-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .back-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}