@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: #5b7a60;
  --primary-dark: #4a634e;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow-light: 0 6px 25px rgba(0, 0, 0, 0.08);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--light-gray);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
}

body.no-scroll {
  overflow: hidden;
}

button {
  cursor: pointer;
  border: 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: white !important;
  cursor: pointer !important;
  opacity: 1 !important;
  color: #333 !important;
  /* Force text color to be standard */
  -webkit-text-fill-color: #333 !important;
  /* Fix for some browsers/mobile */
}

input[readonly]:not(:disabled)::placeholder {
  color: #666 !important;
  /* Make placeholder clearly visible */
  opacity: 1 !important;
}

input[readonly]:disabled {
  background-color: #e9ecef !important;
  /* Distinct grey */
  cursor: not-allowed !important;
  opacity: 1 !important;
  /* Full opacity for the grey background */
  color: #adb5bd !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: "Playfair Display", serif;
  color: var(--primary-color);
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
  letter-spacing: 1px;
}

h2 {
  font-size: 38px;
  text-align: center;
  margin: 60px 0 40px;
}

/* Fix for hash navigation to account for fixed navbar */
section[id] {
  scroll-margin-top: 100px;
}

h3 {
  font-size: 28px;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 80px 20px 60px;
  margin-top: 10px;
  background: linear-gradient(to bottom, #e6f2f8, #ffffff);
}

header img {
  max-width: 280px;
  margin-bottom: 20px;
  margin-top: 30px;
}

header h1 {
  margin: 10px 0;
  color: var(--primary-color);
}

header p {
  font-size: 19px;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}

header p:first-of-type {
  font-size: 22px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  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: 60px;
}

.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(--text-color);
  font-weight: 500;
  font-size: 17px;
  font-family: "Roboto", sans-serif;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 25px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--text-color);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Mobile Nav */
@media (max-width: 1270px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 90px;
    display: flex; /* Ensure flex is active for items spacing */
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 30px 0 120px 0; /* Extra bottom padding for mobile chrome/scrolling */
    height: auto;
    max-height: calc(100vh - 90px);
    max-height: calc(
      100dvh - 90px
    ); /* Use dynamic viewport height for better mobile support */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 25px 0;
  }

  .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);
}

/* ===== TEAM SECTION ===== */
#team {
  padding: 80px 0;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  flex: 1 1 280px;
  /* Base width 280px, can grow, can shrink */
  max-width: 400px;
  /* Don't get too wide */
  min-width: 280px;
  /* Don't get too small */
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(123, 152, 128, 0.15);
}

.team-photo {
  height: 280px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  padding-bottom: 60px;
  /* Make space for the icon */
}

/* ... existing styles ... */

.team-social {
  position: absolute;
  bottom: 20px;
  left: 25px;
  margin-top: 0;
}

.team-social a {
  color: #666;
  font-size: 16px;
  transition: color 0.3s;
  display: block;
  text-decoration: none;
}

.team-social a:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d6249f;
  /* Fallback */
}

.team-info h3 {
  font-size: 22px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-title {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  font-weight: 500;
}

.team-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-wrap: break-word;
}

/* Responsywność dla sekcji team */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .team-photo {
    height: 240px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .team-photo {
    height: 280px;
  }
}

/* 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: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(123, 152, 128, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:nth-child(1)::before {
  transform-origin: left;
}

.service-card:nth-child(2)::before {
  transform-origin: center;
}

.service-card:nth-child(3)::before {
  transform-origin: right;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(123, 152, 128, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 25px;
  background: rgba(123, 152, 128, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: white;
  transform: rotateY(360deg);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.service-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-top: auto;
  text-align: left;
  width: 100%;
}

.service-card li {
  font-size: 15px;
  margin: 10px 0;
  padding-left: 25px;
  position: relative;
  color: #555;
}

.service-card li::before {
  content: "→";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Pricing */
#pricing table {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pricing-container {
  min-height: 400px;
}

#pricing th {
  background: var(--primary-color);
  color: white;
  padding: 18px;
  font-size: 18px;
}

#pricing th:last-child,
#pricing td:last-child {
  text-align: right;
}

#pricing td:nth-child(2) {
  text-align: center;
  color: #666;
}

#pricing td {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

#pricing tr:last-child td {
  border-bottom: none;
}

#pricing tbody tr:nth-child(even) {
  background-color: #f7fafc;
}

#pricing tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

#pricing tbody tr:not(.separator-row) {
  cursor: pointer;
  transition: all 0.2s ease;
}

#pricing tbody tr:not(.separator-row):hover {
  background-color: rgba(123, 152, 128, 0.08);
}

#pricing tr.separator-row {
  cursor: default;
}

#pricing tr.separator-row td {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  padding: 25px 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: none;
}

.blank-separator {
  height: 10px;
}

/* ===== FAQ SECTION ===== */
.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(--light-gray);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #555;
}

.appointment-form {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.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: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 14px;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 20px;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.submit-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Styl dla komunikatów formularza */
.form-message {
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 5px;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error,
.form-message.error-message {
  background-color: #f8d7da;
  color: #d93025;
  border: 1px solid #f5c6cb;
  display: block;
}

.input-error {
  border-color: #d93025 !important;
  background-color: #fff8f8 !important;
}

.field-error-message {
  color: #d93025;
  font-size: 13px;
  margin-top: 5px;
  display: block;
  font-weight: 500;
}

.form-message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.form-message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Contact */
#contact {
  text-align: center;
  background: #f1f8f5;
  padding: 70px 0;
  border-radius: 16px;
  margin: 80px 0;
  margin-bottom: 170px;
}

#contact h2 {
  margin-bottom: 30px;
}

#contact p {
  font-size: 19px;
  margin: 12px 0;
  padding: 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: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  padding: 15px;
  margin: 15px 0;
  color: #856404;
}

.vacation-info h3 {
  margin-top: 0;
  color: #856404;
  font-size: 1.1em;
}

.vacation-info ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.vacation-info li {
  margin-bottom: 5px;
}

/* 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: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.availability-day.unavailable {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.availability-day.weekend {
  background: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.availability-day.today {
  border: 2px solid #4caf50;
  font-weight: bold;
}

option.warning {
  color: orange;
}

option.disabled-time {
  color: #999;
  background-color: #f5f5f5;
}

.vacation-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  padding: 15px;
  margin: 15px 0;
  color: #856404;
}

.vacation-info h3 {
  margin-top: 0;
  color: #856404;
}

/* ===== 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: 60px 20px 50px;
  }

  #pricing table {
    font-size: 15px;
  }

  #pricing th,
  #pricing td {
    padding: 12px;
  }

  .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: var(--white);
  padding: 50px 40px;
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.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: #333;
}

.modal-card p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-actions .btn {
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
}

.modal-actions .btn-cancel {
  background: #eee;
  color: #333;
}

.modal-actions .btn-cancel:hover {
  background: #ddd;
}

.modal-actions .btn-confirm {
  background: var(--primary-color);
  color: white;
}

.modal-actions .btn-confirm:hover {
  background: var(--primary-dark);
}

.modal-details {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: left;
  border: 1px dashed var(--primary-color);
}

.modal-details p {
  margin-bottom: 8px;
  font-size: 14px;
}

.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;
  }
}

/* ===== BLOG ===== */
.subpage-header {
  text-align: center;
  padding: 100px 20px 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.subpage-header h1 {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.subpage-header .logo-small {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.blog-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.blog-card,
.event-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(123, 152, 128, 0.08);
  height: 100%;
}

.blog-card:hover,
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(91, 122, 96, 0.12);
  border-color: rgba(91, 122, 96, 0.2);
}

.blog-thumbnail,
.event-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-thumbnail img,
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumbnail img,
.event-card:hover .event-thumb img {
  transform: scale(1.06);
}

.blog-content,
.event-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3,
.event-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #222;
  font-family: "Playfair Display", serif;
  line-height: 1.3;
}

.blog-card:hover .blog-content h3,
.event-card:hover .event-content h3 {
  color: var(--primary-color);
}

.blog-meta,
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  list-style: none;
  justify-content: flex-start;
}

.blog-meta li,
.event-meta li {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.blog-meta i,
.event-meta i {
  color: var(--primary-color);
}

.blog-excerpt,
.event-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.read-more,
.event-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
}
/* Single Post */
.blog-img-main {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-post-content {
  max-width: 800px;
  margin: 60px auto;
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.blog-hero-wrap {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

body.dark-mode .blog-hero-wrap {
  background: #252525;
  border-color: #333;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.blog-img-main {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.blog-post-header h1 {
  font-size: 42px;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--primary-color);
}

.blog-meta {
  color: #666;
  font-size: 16px;
  display: flex;
  gap: 20px;
  font-style: italic;
}

.blog-post-content h2 {
  font-size: 30px;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: left;
  color: var(--primary-color);
}

.blog-post-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 30px;
  padding-left: 20px;
}

.blog-post-content li {
  margin-bottom: 10px;
}

.back-btn-container {
  margin-top: 60px;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.back-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s;
  font-weight: 600;
}

.back-btn:hover {
  background-color: var(--primary-dark);
}

/* ===== QUILL CONTENT SUPPORT ===== */
.blog-post-content .ql-align-center {
  text-align: center;
}

.blog-post-content .ql-align-right {
  text-align: right;
}

.blog-post-content .ql-align-justify {
  text-align: justify;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

.blog-author {
  color: #666;
  font-size: 14px;
  margin-left: 10px;
}

body.dark-mode .blog-author {
  color: #aaa;
}

/* ===== BLOG POST RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .blog-post-content {
    margin: 30px auto;
    padding: 0 20px;
    font-size: 16px;
  }

  .blog-hero-wrap {
    padding: 20px;
    margin-bottom: 30px;
  }

  .blog-post-header h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .blog-meta {
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
  }

  .blog-img-main {
    max-height: 300px;
    border-radius: 8px;
  }

  .blog-post-content h2 {
    font-size: 24px;
    margin-top: 30px;
  }

  .blog-post-content h3 {
    font-size: 20px;
  }

  .back-btn-container {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .blog-post-content {
    font-size: 15px;
  }

  .blog-post-header h1 {
    font-size: 24px;
  }

  .blog-hero-wrap {
    padding: 15px;
  }

  .blog-img-main {
    max-height: 250px;
  }

  .blog-post-content h2 {
    font-size: 22px;
  }
}

/* ===== GLOBAL DARK MODE SUPPORT FOR BLOG ===== */
body.dark-mode {
  background: #1a1a1a;
  color: #f0f0f0;
}

body.dark-mode .blog-card {
  background: #2d2d2d;
  border-color: #404040;
}

body.dark-mode .blog-content h3 {
  color: #eee;
}

body.dark-mode .blog-excerpt {
  color: #ccc;
}

body.dark-mode .blog-date {
  color: #888;
}

body.dark-mode .subpage-header {
  background: linear-gradient(to bottom, #2c3e50, #1a1a1a);
}

body.dark-mode .subpage-header h1 {
  color: #eee;
}

body.dark-mode .blog-post-content {
  color: #ddd;
}

body.dark-mode .blog-post-content h1,
body.dark-mode .blog-post-content h2,
body.dark-mode .blog-post-content h3 {
  color: #fff;
}

body.dark-mode .blog-meta {
  color: #aaa;
}

body.dark-mode .blog-post-header {
  border-color: #333;
}

body.dark-mode .back-btn-container {
  border-color: #333;
}

/* ===== ADMIN CALENDAR STYLES ===== */

/* Flatpickr Date Statuses */
.flatpickr-day.date-available {
  background: #e8f5e9;
  border-color: #4caf50;
}

.flatpickr-day.date-available:hover {
  background: #c8e6c9;
}

.flatpickr-day.date-full {
  background: #fff3e0;
  border-color: #ffb74d;
  color: #ef6c00;
}

.flatpickr-day.date-off {
  background: #ffebee;
  border-color: #e57373;
  color: #c62828;
}

/* Time Slots Grid */
.time-slots-container {
  padding: 10px 0;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f9f9f9;
}

.time-slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9em;
}

.time-slot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.time-slot-btn.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-dark);
}

.time-slot-btn.available {
  border-left: 3px solid #4caf50;
}

.time-slot-btn.full {
  border-left: 3px solid #f44336;
  background: #fffafa;
}

.time-slot-btn.full .slot-info {
  color: #d32f2f;
}

.slot-info {
  font-size: 0.75em;
  color: #666;
  margin-top: 2px;
}

.time-slot-btn.selected .slot-info {
  color: rgba(255, 255, 255, 0.8);
}

.placeholder-text {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 20px;
  font-style: italic;
}

/* ===== BOOKING FLOW STYLES ===== */
.booking-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(123, 152, 128, 0.1);
}

.booking-header {
  background: var(--light-gray);
  padding: 40px 30px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.booking-header h2 {
  margin: 0 0 30px;
}

.booking-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.booking-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #ddd;
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  transition: all 0.3s ease;
}

.step.completed {
  cursor: pointer;
}

.step.completed:hover span {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.step.completed:hover p {
  color: var(--primary-color);
}

.step span {
  width: 34px;
  height: 34px;
  background: white;
  border: 2px solid #ddd;
  color: #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step p {
  font-size: 13px;
  color: #999;
  font-weight: 500;
  margin: 0;
}

.step.active span {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(91, 122, 96, 0.3);
}

.step.active p {
  color: var(--primary-color);
  font-weight: 700;
}

.step.completed span {
  border-color: var(--primary-color);
  background: white;
  color: var(--primary-color);
}

.booking-step-content {
  display: none;
  padding: 40px;
  animation: slideLeft 0.4s ease;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.booking-step-content.active {
  display: block;
}

.booking-step-content h3 {
  text-align: center;
  margin-bottom: 30px;
}

/* Service Grid */
.services-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-option {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-option.selected {
  border-color: var(--primary-color);
  background: rgba(91, 122, 96, 0.05);
}

.service-option .service-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.service-option .service-info {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.service-option .service-info i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* Weekly Calendar */
.weekly-calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  background: #fdfdfd;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.weekly-calendar-nav .nav-btn {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.weekly-calendar-nav .nav-btn:hover {
  opacity: 0.9;
}

.weekly-calendar-nav .nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#current-week-display {
  font-weight: 700;
  color: var(--primary-color);
}

.weekly-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.calendar-column {
  min-width: 120px;
  text-align: center;
}

.day-header {
  margin-bottom: 15px;
  padding: 10px;
  background: #f5f7f5;
  border-radius: 8px;
}

.day-header .day-name {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #777;
  letter-spacing: 1px;
}

.day-header .day-date {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.day-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-slot {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: var(--primary-color);
  background: #f9faf9;
  color: var(--primary-color);
}

.time-slot.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.no-slots {
  font-size: 11px;
  color: #bbb;
  padding: 10px 0;
  font-style: italic;
}

/* Step Nav */
.step-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.back-btn {
  background: none;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.back-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.step-nav h3 {
  margin: 0;
  flex-grow: 1;
}

/* Summary Info */
.selected-slot-info {
  background: rgba(33, 150, 243, 0.05);
  border-left: 4px solid #2196f3;
  padding: 10px 20px;
  margin-bottom: 30px;
  border-radius: 0 8px 8px 0;
  color: #1976d2;
}

.booking-summary-box {
  background: #f9faf9;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px dashed var(--primary-color);
}

.booking-summary-box p {
  margin: 5px 0;
}

/* Specialists Grid */
.specialists-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.specialist-option {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.specialist-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.specialist-option.selected {
  border-color: var(--primary-color);
  background: rgba(91, 122, 96, 0.05);
}

.spec-img-small {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid #eee;
}

.specialist-option.selected .spec-img-small {
  border-color: var(--primary-color);
}

.spec-option-name {
  font-weight: 700;
  display: block;
}

/* Manage Booking */
#manage-booking {
  padding: 80px 0;
  background: #f2f5f2;
}

.manage-booking-box {
  background: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
}

.lookup-form {
  margin-bottom: 30px;
}

.manage-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
}

.booking-details-card {
  border-top: 1px solid #eee;
  padding-top: 30px;
  animation: fadeIn 0.5s ease;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.detail-item label {
  display: block;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.detail-item span {
  font-weight: 600;
  font-size: 16px;
}

.manage-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.reschedule-btn {
  background: #2196f3;
  color: white;
}

.cancel-btn {
  background: white;
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
}

.cancel-btn:hover {
  background: #fffafa;
}

/* Loading states */
.pricing-loading,
.loading-services,
.loading-calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 40px 20px;
  color: #666;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== RESPONSIVE IMPROVEMENTS - BOOKING SECTION ===== */

/* Mobile-First Approach for Booking Steps */
@media (max-width: 768px) {
  .booking-header {
    padding: 30px 20px;
  }

  .booking-header h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .booking-steps {
    gap: 20px;
    max-width: 100%;
    padding: 0 10px;
  }

  .booking-steps::before {
    left: 30px;
    right: 30px;
  }

  .step span {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .step p {
    font-size: 11px;
  }

  .booking-step-content {
    padding: 30px 20px;
  }

  .booking-step-content h3 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  /* Services Selection Grid - Mobile */
  .services-selection-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-option {
    padding: 20px;
  }

  .service-option .service-name {
    font-size: 17px;
  }

  .service-option .service-info {
    flex-direction: column;
    gap: 8px;
  }

  /* Weekly Calendar - Mobile Optimized */
  .weekly-calendar-nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
  }

  .weekly-calendar-nav .nav-btn {
    width: 100%;
    padding: 10px 16px;
  }

  #current-week-display {
    text-align: center;
    font-size: 15px;
  }

  .weekly-calendar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .calendar-column {
    min-width: auto;
    scroll-snap-align: start;
  }

  .day-header {
    padding: 8px 5px;
    margin-bottom: 10px;
  }

  .day-header .day-name {
    font-size: 10px;
  }

  .day-header .day-date {
    font-size: 16px;
  }

  .time-slot {
    padding: 10px 5px;
    font-size: 13px;
  }

  .no-slots {
    font-size: 10px;
    padding: 8px 0;
  }

  /* Specialists Grid - Mobile */
  .specialists-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .specialist-option {
    padding: 15px;
  }

  .spec-img-small {
    width: 60px;
    height: 60px;
  }

  .spec-option-name {
    font-size: 14px;
  }

  /* Step Navigation - Mobile */
  .step-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .step-nav h3 {
    font-size: 20px;
    width: 100%;
  }

  .back-btn {
    width: auto;
    align-self: flex-start;
  }

  /* Summary Info - Mobile */
  .selected-slot-info {
    padding: 12px 15px;
    font-size: 14px;
    margin-bottom: 25px;
  }

  .booking-summary-box {
    padding: 15px;
    margin-bottom: 25px;
  }

  .booking-summary-box p {
    font-size: 14px;
  }

  /* Appointment Form - Mobile */
  .appointment-form {
    padding: 25px 15px;
  }

  .form-row {
    gap: 15px;
  }

  .form-group {
    min-width: 100%;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .checkbox-group {
    gap: 12px;
    align-items: flex-start;
  }

  .checkbox-group input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
  }

  .checkbox-group label {
    font-size: 13px;
  }

  .submit-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }

  /* Loading States - Mobile */
  .pricing-loading,
  .loading-services,
  .loading-calendar {
    padding: 30px 15px;
    font-size: 14px;
  }

  .loading-spinner {
    width: 35px;
    height: 35px;
  }

  /* Manage Booking - Mobile */
  .manage-booking-box {
    padding: 30px 20px;
    margin: 0 15px;
    border-radius: 16px;
  }

  .details-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .status-badge {
    padding: 5px 10px;
    font-size: 12px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .detail-item label {
    font-size: 11px;
  }

  .detail-item span {
    font-size: 15px;
  }

  .manage-actions {
    flex-direction: column;
    gap: 12px;
  }

  .action-btn {
    width: 100%;
  }

  /* Error/Success Messages */
  .form-message {
    padding: 10px 12px;
    font-size: 14px;
    margin: 12px 0;
  }

  /* Modal - Mobile */
  .modal-card {
    width: 95%;
    max-width: 400px;
    padding: 35px 25px;
  }

  .modal-icon {
    font-size: 50px;
  }

  .modal-card h2 {
    font-size: 24px;
  }

  .modal-card p {
    font-size: 15px;
  }

  .modal-details {
    padding: 15px;
    font-size: 14px;
  }

  .modal-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
}

/* Even smaller screens - 2 columns */
@media (max-width: 480px) {
  .weekly-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .booking-container {
    border-radius: 16px;
    margin: 0 10px;
  }

  .booking-step-content {
    padding: 25px 15px;
  }

  .day-header .day-date {
    font-size: 14px;
  }

  .time-slot {
    font-size: 12px;
    padding: 8px 4px;
  }

  .specialists-selection-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .specialist-option {
    padding: 20px;
  }

  .spec-img-small {
    width: 70px;
    height: 70px;
  }

  .pricing-loading,
  .loading-services,
  .loading-calendar {
    padding: 30px 15px;
    font-size: 14px;
  }

  .loading-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
  }
}

/* Very Small Screens (e.g., iPhone SE) */
@media (max-width: 380px) {
  .booking-header h2 {
    font-size: 24px;
  }

  .booking-steps {
    gap: 12px;
  }

  .booking-steps::before {
    left: 20px;
    right: 20px;
  }

  .step span {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .step p {
    font-size: 10px;
  }

  .booking-step-content {
    padding: 20px 12px;
  }

  .service-option {
    padding: 15px;
  }

  .service-option .service-name {
    font-size: 16px;
  }

  .weekly-calendar-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calendar-column {
    max-width: 100%;
  }

  .day-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
  }
}

/* Tablet Optimization (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .booking-container {
    max-width: 900px;
  }

  .services-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .weekly-calendar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .specialists-selection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Landscape Phone Optimization */
@media (max-width: 900px) and (orientation: landscape) {
  .weekly-calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .booking-header {
    padding: 20px;
  }

  .booking-steps p {
    font-size: 10px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .service-option,
  .specialist-option,
  .time-slot {
    min-height: 44px;
  }

  .back-btn,
  .nav-btn,
  .submit-btn {
    min-height: 44px;
  }

  .time-slot {
    padding: 12px 8px;
  }

  .service-option {
    padding: 24px;
  }

  .specialist-option {
    padding: 24px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .booking-step-content {
    animation: none;
  }

  .service-option,
  .specialist-option,
  .time-slot {
    transition: none;
  }

  .step span {
    transition: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .service-option,
  .specialist-option {
    border-width: 3px;
  }

  .time-slot {
    border-width: 2px;
  }

  .booking-steps::before {
    height: 3px;
  }
}

/* Specialist Filter Styles */
.specialist-filter-container {
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.specialist-filter-container label {
  font-weight: 500;
  color: var(--primary-color);
  font-size: 16px;
}

.specialist-filter-container select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-color);
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7a60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.specialist-filter-container select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(91, 122, 96, 0.2);
}

.specialist-filter-container select:hover {
  border-color: var(--primary-color);
}

@media (min-width: 768px) {
  .specialist-filter-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .specialist-filter-container label {
    margin-bottom: 0;
    white-space: nowrap;
    margin-right: 20px;
  }

  .specialist-filter-container select {
    max-width: 400px;
  }
}

/* Notification Toast Styles */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 400px;
  border-left: 5px solid var(--primary-color);
}

.notification-toast.active {
  transform: translateX(0);
}

.notification-toast i {
  font-size: 20px;
}

.notification-toast.success {
  border-left-color: #28a745;
}
.notification-toast.success i {
  color: #28a745;
}

.notification-toast.error {
  border-left-color: #dc3545;
}
.notification-toast.error i {
  color: #dc3545;
}

.notification-toast.info {
  border-left-color: #17a2b8;
}
.notification-toast.info i {
  color: #17a2b8;
}

.notification-toast-message {
  font-weight: 500;
  color: #333;
}

/* ===== EVENTS SECTION ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.event-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(123, 152, 128, 0.08);
  height: 100%;
}

.event-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(91, 122, 96, 0.15);
  border-color: rgba(91, 122, 96, 0.2);
}

.event-thumb {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-thumb img {
  transform: scale(1.08);
}

.event-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #222;
  font-family: "Playfair Display", serif;
}

.event-description {
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

.event-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-family: "Arvo", serif;
}

.btn-event-details {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(91, 122, 96, 0.2);
}

.btn-event-details:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(91, 122, 96, 0.3);
}

.btn-event-details.blocked {
  background: #f8f9fa;
  color: #dc3545;
  border: 1px solid #dc3545;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-event-details.blocked:hover {
  transform: none;
  background: #f8f9fa;
}

.empty-events {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(123, 152, 128, 0.03);
  border: 2px dashed rgba(123, 152, 128, 0.1);
  border-radius: 25px;
  color: #777;
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .event-thumb {
    height: 200px;
  }
}
