@font-face {
  font-family: "Arvo";
  src: url("../fonts/Arvo/Arvo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arvo";
  src: url("../fonts/Arvo/Arvo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/Playfair_Display/PlayfairDisplay-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/Playfair_Display/PlayfairDisplay-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #00e5ff; /* Cyan Neon */
  --bg-dark: #080808;
  --bg-card: #ffffff;
  --text-main: #ffffff;
  --text-dark: #222222;
  --light-gray: #1a1a1a;
  --white: #ffffff;
  --text-main: #ffffff;
  --text-color: #ffffff; /* Define missing variable */
  --shadow-neon: 0 0 15px rgba(0, 229, 255, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Remove gray highlight on tap in iOS */
}

input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0; /* iOS usually adds some default radius */
}

body {
  font-family: "Montserrat", "Roboto", sans-serif; /* More sporty font */
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  background-image: url("../images/bg-grunge.png"); /* Placeholder, sticking to dark color for now if image missing */
  background-blend-mode: overlay;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

/* Firefox support */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-dark);
}

/* ===== ANIMATIONS ===== */
@keyframes logoPulse {
  0% {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5))
      drop-shadow(0 0 30px rgba(0, 229, 255, 0.2));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.9))
      drop-shadow(0 0 70px rgba(0, 229, 255, 0.5));
    transform: scale(1.03);
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5))
      drop-shadow(0 0 30px rgba(0, 229, 255, 0.2));
    transform: scale(1);
  }
}

button {
  cursor: pointer;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Styl dla wyłączonych pól */
select:disabled,
input[type="date"]:disabled,
input:disabled {
  background-color: #e9ecef !important;
  color: #adb5bd !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  border-color: #dee2e6 !important;
}

/* Styl dla przycisku wyłączonego */
button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Calendar */
.flatpickr-calendar.loading {
  cursor: wait;
}

/* Styl dla dni niedostępnych w kalendarzu */
.flatpickr-day.disabled-date {
  color: #ff4d4d !important; /* Czerwony kolor tekstu */
  background: #fff0f0;
  text-decoration: line-through;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.flatpickr-day.disabled-date:hover {
  background: #ffebeb !important;
}

/* Loading dla kalendarza */
.calendar-loading {
  position: relative;
  opacity: 0.7;
}

.calendar-loading::after {
  content: "Ładowanie dostępności...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 1000;
  font-size: 14px;
  color: #333;
}

.calendar-loading-overlay .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Calendar Loading State */
.flatpickr-calendar.loading-availability {
  pointer-events: none !important; /* Block clicks */
}

.flatpickr-calendar.loading-availability::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 999;
  border-radius: 5px;
}

.flatpickr-calendar.loading-availability::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color); /* Use primary color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1000;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fix dla Flatpickr (input readonly ale aktywny) */
input[readonly]:not(:disabled) {
  background-color: #ffffff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
  transition: all 0.3s ease;
}

input[readonly]:not(:disabled):focus,
input[readonly]:not(:disabled).active {
  outline: none !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2) !important;
  background-color: #ffffff !important;
}

input[readonly]:not(:disabled)::placeholder {
  color: #aaa !important;
  opacity: 1 !important;
}

input[readonly]:disabled {
  background-color: #e9ecef !important;
  border: 1px solid #ddd !important;
  cursor: not-allowed !important;
  color: #adb5bd !important;
  opacity: 1 !important;
}

/* Styl dla opcji wyłączonych */
option:disabled {
  color: #999;
  font-style: italic;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
  font-family: "Montserrat", "Playfair Display", sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

h1 {
  font-size: 56px;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); /* Neon glow */
}

h2 {
  font-size: 42px;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
  display: inline-block;
  width: 100%;
}

h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto;
  box-shadow: 0 0 10px var(--primary-color);
}

h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 100px 20px 80px;
  margin-top: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 229, 255, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

header img {
  max-width: 280px;
  margin-bottom: 20px;
  margin-top: 30px;
  animation: logoPulse 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

header h1 {
  margin: 10px 0;
  color: var(--white);
}

header p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
  font-weight: 300;
}

header p:first-of-type {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px var(--primary-color);
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  max-width: 1400px;
}

.nav-logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  letter-spacing: 1px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

@media (min-width: 901px) {
  .nav-highlight span {
    display: none; /* Hide label on desktop */
  }

  .nav-menu i:not(.nav-highlight i) {
    display: none; /* Hide icons on desktop, except for the highlighted element icon */
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 25px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--white);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 90px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: left; /* Align to left on mobile */
    transition: 0.4s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 30px 40px 60px; /* Increased padding for left alignment and bottom space */
    height: calc(100vh - 90px);
    overflow-y: auto; /* Allow vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  }

  .nav-menu.active {
    left: 0;
  }

  /* Prevent page scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
  }

  .nav-menu li {
    margin: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Optional: add subtle separators */
    padding-bottom: 15px;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  /* Dark text for mobile menu links */
  .nav-menu a {
    color: #222 !important;
    font-weight: 600;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--primary-color) !important;
  }

  .nav-highlight i,
  .nav-menu i {
    margin-right: 12px;
    display: inline-block; /* Show icons on mobile */
    width: 20px;
    text-align: center;
  }

  .nav-highlight span,
  .nav-menu span {
    display: inline; /* Show label in mobile menu */
  }

  .nav-menu a::after {
    background-color: var(--primary-color);
  }

  .nav-logo {
    margin-left: 10px;
  }
}

.navbar-placeholder {
  height: 90px;
}

.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== ABOUT ===== */
.about {
  text-align: center;
  padding: 60px 0px;
}

.about h3 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-desc {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.about-photos {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(20, 15, 15, 0.336);
  padding: 20px;
}

.about-photos img {
  height: 400px;
  width: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(20, 15, 15, 0.336);
}

/* Why us */
#why-us ul {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

#why-us li {
  font-size: 18px;
  padding-left: 40px;
  position: relative;
  margin: 18px 0;
}

#why-us li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 24px;
  top: -2px;
}

/* Services Container */
.services-card-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-card);
  padding: 50px 30px;
  border-radius: 150px 150px 20px 20px; /* Arch shape */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 320px;
  flex: 1;
  min-width: 280px;
  border: 4px solid transparent; /* Prepare for border hover */
}

/* Neon border effect on hover or active */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--primary-color);
    /* border-color: var(--primary-color); -- Removed to keep clean white look */
  }
}

.service-card:active {
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--primary-color);
}

.service-icon {
  font-size: 50px;
  margin-bottom: 25px;
  color: #000; /* Black icon as per design */
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color); /* Cyan title */
  text-shadow: 0 0 5px var(--primary-color);
  font-weight: 800;
  text-transform: uppercase;
}

.service-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-weight: 500;
}

.service-card .service-details {
  margin-top: 20px;
  background: rgba(0, 229, 255, 0.05);
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.service-card .service-duration {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-weight: 700;
}

.service-card .service-price {
  font-size: 28px;
  font-weight: 800;
  color: #000;
  display: block;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.service-card li {
  font-size: 15px;
  margin: 8px 0;
  color: #444;
  font-weight: 600;
}

.service-card li::before {
  content: none; /* Remove arrow */
}

/* Pricing Section Styles Removed - Merged into Services */
.loading-spinner,
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dynamically Generated Pricing Table */
/* Removed .pricing-table-main rules */

/* Gallery Section */
#gallery {
  padding: 80px 0;
  background: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  aspect-ratio: 4 / 3;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

.gallery-placeholder {
  color: #555;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Video specific styles */
.video-item {
  position: relative;
  cursor: pointer;
}

.video-item video {
  transition: transform 0.6s ease;
}

.video-item:hover video {
  transform: scale(1.05);
}

.video-overlay {
  transition: all 0.3s ease;
  z-index: 2;
}

.video-item:hover .video-overlay {
  background: var(--primary-color) !important;
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--primary-color);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* FAQ */
.faq-item {
  background: white;
  margin: 15px auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(123, 152, 128, 0.1);
  border-color: rgba(123, 152, 128, 0.2);
}

.faq-question {
  background: white;
  color: var(--text-color);
  padding: 22px 30px;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  color: var(--primary-color);
  background: rgba(123, 152, 128, 0.02);
}

.faq-question::after {
  content: "↓";
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--primary-color);
  background: rgba(123, 152, 128, 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
  background: var(--primary-color);
  color: white;
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0, 1, 0, 1);
  background: #fff;
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px;
  max-height: 500px;
  transition: all 0.4s cubic-bezier(1, 0, 1, 0);
}

/* ===== APPOINTMENT FORM ===== */
#appointment {
  padding: 80px 0;
  background: var(--bg-dark);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #ccc;
}

.appointment-form {
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  min-width: 280px;
  margin: 10px 0;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  background: #ffffff;
}

/* Dynamic filled state */
.form-group input.filled-field,
.form-group select.filled-field,
.form-group textarea.filled-field,
input[readonly].filled-field:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: white !important;
  border-color: var(--glass-border) !important;
}

.form-group input.filled-field:focus,
.form-group select.filled-field:focus,
.form-group textarea.filled-field:focus,
input[readonly].filled-field:not(:disabled):focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary-color) !important;
}

/* Custom styles for select options in dark theme */
.form-group select option {
  background: #1a1a1a;
  color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-group input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-group input:checked {
  background: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
}

.checkbox-group input:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 14px;
  color: #bbb;
  text-transform: none;
  letter-spacing: normal;
}

.submit-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  width: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--primary-color);
  background: #fff;
}

.submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  border: 1px solid #444;
}

/* Styl dla komunikatów formularza */
.form-message {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 12px;
  display: none;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background-color: rgba(0, 255, 0, 0.1);
  color: #4ade80;
  border: 1px solid rgba(0, 255, 0, 0.2);
}

.form-message.error {
  background-color: rgba(255, 0, 0, 0.1);
  color: #f87171;
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.form-message.warning {
  background-color: rgba(255, 165, 0, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(255, 165, 0, 0.2);
}

/* Contact */
#contact {
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 70px 20px;
  border-radius: 20px;
  margin: 80px 0 170px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#contact h2 {
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

#contact p {
  font-size: 20px;
  margin: 20px 0;
  color: white;
  letter-spacing: 0.5px;
}

#contact a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
}

#contact img {
  margin-top: 30px;
  width: 180px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== ANIMATIONS & UTILITIES ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Vacation Info */
.vacation-info {
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: #ffb800;
}

.vacation-info h3 {
  margin-top: 0;
  color: #ffb800;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.vacation-info ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.vacation-info li {
  margin-bottom: 8px;
}

/* Form Styles */
select option:disabled {
  color: #999;
  font-style: italic;
}

optgroup {
  font-weight: bold;
  color: #666;
}

optgroup option:not(:disabled) {
  font-weight: normal;
  color: #000;
}

.form-message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.form-message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-pulse {
  animation: pulse 1.5s infinite;
}

/* Availability Calendar */
.availability-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 15px 0;
}

.availability-day {
  padding: 8px;
  text-align: center;
  border-radius: 3px;
  font-size: 0.9em;
}

.availability-day.available {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.availability-day.unavailable {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.availability-day.weekend {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.availability-day.today {
  border: 2px solid #4caf50;
  font-weight: bold;
}

option.warning {
  color: orange;
}

option.disabled-time {
  color: #666;
  background-color: #222;
}

/* Removed duplicate vacation-info */

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .services-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
  }

  .service-card:nth-child(3) {
    grid-column: 1 / span 2;
    max-width: 400px;
    margin: 0 auto;
    justify-self: center;
  }

  .service-card:nth-child(1)::before {
    transform-origin: left;
  }

  .service-card:nth-child(2)::before {
    transform-origin: right;
  }

  .service-card:nth-child(3)::before {
    transform-origin: center;
  }
}

@media (max-width: 768px) {
  .services-card-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px;
  }

  .service-card:nth-child(3) {
    max-width: none;
    grid-column: 1;
  }

  .service-card {
    width: 100%;
  }

  .service-card:nth-child(1)::before {
    transform-origin: center;
  }

  .service-card:nth-child(2)::before {
    transform-origin: center;
  }

  .service-card:nth-child(3)::before {
    transform-origin: center;
  }
}

@media (max-width: 480px) {
  .services-card-grid {
    padding: 0 15px;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-photos img {
    height: 300px;
  }

  #contact {
    padding: 20px 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  header {
    padding: 120px 20px 50px;
  }

  /* Removed responsive pricing-table rules */

  .about-photos img {
    height: 250px;
  }

  .form-row {
    flex-direction: column;
  }

  .appointment-form {
    padding: 30px 20px;
  }

  .availability-calendar {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Wyśrodkowanie przycisku na telefonach */
  .submit-btn {
    display: block;
    margin: 20px auto !important;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  #about-img2 {
    order: 1;
  }
  .about-photos img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  header img {
    max-width: 220px;
  }

  #contact img {
    width: 150px;
    height: auto;
  }

  .about-photos img {
    height: 200px;
  }

  #contact p {
    font-size: 15px;
  }

  .availability-calendar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .about-photos img {
    height: 160px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 85%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
  }

  h2 {
    margin: 10px 0;
  }

  .nav-logo {
    margin-left: 5px;
  }
}

/* SUCCESS MODAL */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
}

.modal-card {
  background: #111;
  padding: 50px 40px;
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.modal-card h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

.modal-card p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 30px;
}

.modal-details {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: left;
  border: 1px dashed rgba(0, 229, 255, 0.4);
}

.modal-details p {
  margin-bottom: 8px;
  font-size: 14px;
  color: #bbb;
}

.modal-details p:last-child {
  margin-bottom: 0;
}

.modal-details strong {
  color: var(--primary-color);
}

.modal-btn {
  background: var(--primary-color);
  color: white;
  padding: 15px 40px;
  border-radius: 12px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.modal-btn:active {
  transform: scale(0.98);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-color);
  color: var(--white);
  padding: 40px 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer p {
  font-size: 14px;
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: 80px 20px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.placeholder {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  background: rgba(255, 255, 255, 0.05);
}

.gallery-placeholder-content {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
  opacity: 0.6;
}

.gallery-more-container {
  margin-top: 40px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10010;
  transition: 0.3s;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.lightbox-close:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10010;
  backdrop-filter: blur(5px);
}

.lightbox-prev {
  left: 40px;
}
.lightbox-next {
  right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary-color);
  color: black;
  box-shadow: 0 0 20px var(--primary-color);
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  width: 80%;
}

.gallery-item {
  cursor: pointer;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    bottom: 40px;
    top: auto;
    transform: none;
  }
  .lightbox-prev {
    left: 20px;
  }
  .lightbox-next {
    right: 20px;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}

/* ===== CUSTOM TIME PICKER POPUP ===== */
.time-picker-wrapper {
  position: relative;
  width: 100%;
}

.time-slots-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 350px;
  background: #1a1a1a;
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  margin-top: 8px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  z-index: 1000;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 229, 255, 0.1);
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.time-slots-popup.active {
  display: flex;
  animation: slideInDown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.time-slot-btn {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 15px;
}

.time-slot-btn:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transform: translateX(5px);
}

.time-slot-btn.active {
  background: var(--primary-color);
  color: var(--bg-dark);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
}

.time-slot-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.slot-info {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.placeholder-text {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px 0;
}

/* Scrollbar for popup */
.time-slots-popup::-webkit-scrollbar {
  width: 5px;
}
.time-slots-popup::-webkit-scrollbar-track {
  background: transparent;
}
.time-slots-popup::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

/* ===== FLATPICKR CUSTOMIZATION (PREMIUM BLUE) ===== */
.flatpickr-calendar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  border-radius: 16px !important;
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  width: 320px !important;
}

/* Header (Month/Year) */
.flatpickr-months {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.flatpickr-current-month {
  color: #fff !important;
  font-weight: 700;
}

.flatpickr-current-month span.cur-month {
  color: #fff !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after,
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-bottom-color: #fff !important;
  border-top-color: #fff !important;
}

.flatpickr-monthDropdown-months {
  background: #0f172a !important; /* Deep Blue */
  color: #fff !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  fill: #fff !important;
  color: #fff !important;
  padding-top: 5px !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: #3b82f6 !important; /* Royal Blue */
}

/* Days */
.flatpickr-day {
  color: #e2e8f0 !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.flatpickr-day:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.flatpickr-day.today {
  border-color: #3b82f6 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.flatpickr-day.disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.disabled-date {
  color: rgba(255, 255, 255, 0.2) !important;
  background: transparent !important;
  border-color: transparent !important;
  text-decoration: none !important;
}

/* Weekdays */
.flatpickr-weekday {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 700 !important;
}
