/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Author: Layanson Pharmacy
Author URI: https://layanson-pharmacy.local
Description: A child theme for Blocksy.
Template: blocksy
Version: 1.0
Text Domain: blocksy-child
*/

/*------------ Footer Styling --------------------*/

.custom-footer {
  background-image: url('http://layansonpharmacy.com/wp-content/uploads/2025/07/VRNG-8.webp');
  background-size: cover;
  background-position: center;
  padding: 90px 150px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.footer-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-box {
  flex: 1;
  min-width: 260px;
  background: white;
  color: #222;
  padding: 30px 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  border-radius: 0; /* No rounded corners */
}

.footer-box h3 {
  margin-top: 15px;
  font-size: 18px;
  color: #111;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-box h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: #00b386;
  margin: 10px auto 0;
}

.footer-box p {
  font-size: 15px;
  line-height: 1.6;
}

/* ICON SIZE: Doubled from 50x50 to 100x100 */
.footer-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

/* Optional: Predefined icon sizes for flexibility */
.footer-icon.large {
  width: 120px;
  height: 120px;
}

.footer-icon.medium {
  width: 100px;
  height: 100px;
}

.footer-icon.small {
  width: 60px;
  height: 60px;
}

.get-directions {
  color: #00b386;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom-stacked {
  text-align: center;
  padding: 20px 0;
}

.footer-bottom-stacked p {
  margin: 10px 0;
  font-size: 14px;
}

.footer-bottom-stacked a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom-stacked a:hover {
  color: #00b386;
}

@media screen and (max-width: 768px) {
  .footer-boxes {
    flex-direction: column;
    align-items: center;
  }

  .footer-box {
    width: 100%;
    max-width: 420px;
  }

  .custom-footer {
    padding: 30px;
  }
}

.custom-page-title {
  position: relative;
  background-size: cover;
  background-position: top;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #006838;
  overflow: hidden;
}

.custom-page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 80%; /* increased from 50% to 70% */
  height: 100%;
  background: linear-gradient(
    to right,
    white 0%,
    rgba(255, 255, 255, 0.95) 25%,
    rgba(255, 255, 255, 0.8) 45%,
    rgba(255, 255, 255, 0.5) 60%,
    transparent 100%
  );
  z-index: 1;
}

.custom-title-overlay {
  position: relative;
  z-index: 2;
  padding-left: 10%;
  max-width: 90%;
  width: 100%;
  word-break: break-word;
}

.custom-title-overlay h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 15px;
  line-height: 1.2;
  color: #006838;
  white-space: normal;
  max-width: 90%;
}

.custom-title-divider {
  width: 30%;
  height: 4px;
  background-color: #006838;
  margin: 0;
  border: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .custom-title-overlay h1 {
    font-size: 2.5rem;
  }

  .custom-title-divider {
    width: 35%;
  }
}

@media screen and (max-width: 768px) {
  .custom-page-title {
    height: 20vh;
    justify-content: left;
    text-align: left;
  }

  .custom-title-overlay {
    padding: 0 20px;
  }

  .custom-title-overlay h1 {
    font-size: 1.5rem;
  }

  .custom-title-divider {
    margin: 0 auto;
    width: 50%;
  }
}

.custom-sidebar {
  padding: 20px;
  background: #f8f8f8;
  border-left: 2px solid #00b386;
  position: sticky;
  top: 100px;
}

/* General Widget Styling */
.custom-sidebar .widget {
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}

.custom-sidebar .widget-title {
  font-size: 18px;
  margin-bottom: 10px;
  border-left: 4px solid #006838;
  padding-left: 10px;
  font-weight: bold;
}

/* Search Input */
.custom-sidebar input[type="search"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Appointment Button */
.book-appointment {
  display: block;
  text-align: center;
  background-color: #006838;
  color: white;
  padding: 12px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.book-appointment:hover {
  background-color: #78b75e;
}

/* --- Recent Posts --- */
.custom-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-card {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  gap: 15px;
  border-radius: 10px;
  transition: background 0.2s ease;
  padding: 6px;
}

.recent-post-card:hover {
  background: #f4f4f4;
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 8px;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recent-post-title {
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1c;
  line-height: 1.4;
}

.recent-post-date {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

/* --- Categories --- */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.category-list li a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.category-list li a:hover {
  color: #78b75e;
}

/* --- Calendar Styling --- */
.custom-sidebar .widget_calendar table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.custom-sidebar .widget_calendar td,
.custom-sidebar .widget_calendar th {
  text-align: center;
  padding: 8px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Today's date styling */
.custom-sidebar #wp-calendar td#today {
  background: #d9fbe2;
  color: #006838;
  border-radius: 50%;
  font-weight: bold;
  width: 32px;
  height: 32px;
  display: inline-block;
  line-height: 32px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 480px) {
  .recent-post-card {
    gap: 10px;
  }

  .recent-post-thumb {
    width: 55px;
    height: 55px;
  }

  .recent-post-title {
    font-size: 14px;
  }

  .recent-post-date {
    font-size: 12px;
  }
}

/* =================== Related Services Section =================== */

.related-services-section {
    background: #fafafa;
    padding: 40px 20px;
    text-align: center;
}

.book-now-button {
    background: #006838;
    color: #fff;
    font-weight: bold;
    padding: 10px 25px;
    display: inline-block;
    border-radius: 5px;
    animation: vibrate 0.5s infinite;
    text-decoration: none;
}

@keyframes vibrate {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.related-divider {
    width: 80px;
    margin: 20px auto;
    border: none;
    border-top: 2px solid #ccc;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

.related-service-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.related-service-box:hover {
    transform: translateY(-5px);
}

.related-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #222;
}

.related-divider-line {
    width: 50px;
    margin: 10px auto;
    border-top: 2px solid #eee;
}

.related-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.related-button {
    display: inline-block;
    background: #006838;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.related-button:hover {
    background: #004f2e;
}

/*------- SERVICES HOME SLIDER ----------*/

:root {
  --layanson-green: #00b386;
  --layanson-blue: #006838;
  --layanson-light: #fafafa;
  --layanson-text: white;
  --text-dark: black;
  --text-muted: black;
}

.service-carousel {
  overflow: hidden;
  background: var(--layanson-light);
  padding: 40px 0;
}

.carousel-track {
  display: flex;
  width: calc(300px * 6); /* 6 cards */
  animation: scrollCarousel 30s linear infinite;
}

.service-card {
  flex: 0 0 300px;
  background: #fff;
  margin: 0 10px;
  height: 300px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--layanson-green);
}

.service-card h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.divider {
  width: 40px;
  margin: 10px auto;
  border: none;
  border-top: 2px solid #eee;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px 0 20px;
}

.learn-more {
  display: inline-block;
  background: var(--layanson-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.learn-more:hover {
  background: var(--layanson-text);
}

/* Carousel Animation */
@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-track {
    animation: scrollCarouselMobile 25s linear infinite;
  }

  .service-card {
    flex: 0 0 auto;
    width: 85vw; /* responsive to viewport */
    max-width: 320px;
    margin: 0 10px;
  }

  @keyframes scrollCarouselMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-250%); }
  }
}

/*-------------- Hero Slider Styling -----------*/
.layanson-hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  color: black;
  background: rgba(255,255,255,0.8);
  padding: 40px;
  border-radius: 10px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.hero-btn {
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.hero-btn.green {
  background-color: #006838;
  color: #fff;
}

.hero-btn.green:hover {
  background-color: #78b75e;
}

.hero-btn.blue {
  background-color: #006838;
  color: #fff;
}

.hero-btn.blue:hover {
  background-color: #78b75e;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 20px;
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-btn {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #fafafa; /* Match next section background */
  border-top-left-radius: 100% 50px;
  border-top-right-radius: 100% 50px;
  z-index: 2;
}

/* -------------------------Booking Form Layout container ----------------------------------*/
/* Layout container */
.booking-wrapper {
  display: flex;
  flex-wrap: wrap;
  min-height: 70vh;
  background-color: #f7f7f9;
  font-family: 'Inter', sans-serif;
}

/*=== Sidebar ===*/
.booking-sidebar {
  width: 150px;
  background-color: #1a7e3d;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 0px 50px 20px;
}

.booking-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-item {
  padding: 12px 10px;
  border-left: 4px solid transparent;
  margin-bottom: 8px;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.step-item.active {
  color: #fbff00;
  border-left-color: white;
  border-radius: 4px 0 0 4px;
}

.support-box {
  font-size: 12px;
  color: #eee;
}

.support-box strong {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-top: 6px;
}

/*=== Main Content ===*/
.booking-main {
  flex: 1;
  padding: 40px 60px;
  background-color: #fff;
}

/*=== Form Step ===*/
.form-step {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.form-step.active {
  visibility: visible;
  height: auto;
  opacity: 1;
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/*=== Form Fields ===*/
input,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #00b386;
  box-shadow: 0 0 0 2px rgba(26, 126, 61, 0.15);
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.input-error {
  border-color: red !important;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15);
}

/*=== Service Scroll Container ===*/
.service-scroll {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  background: #fafafa;
}

/*=== Booking Services Grid ===*/
.booking-service-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.booking-service-card:hover {
  background-color: #f9f9f9;
  border-color: #00b386;
}

.booking-service-card.selected {
  border: 2px solid #00b386;
  background: #f0fff5;
}

.booking-service-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-service-icon {
  width: 40px;
  height: 40px;
  background-color: #e9eef7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-service-icon i {
  font-size: 18px;
  color: #006838;
}

.booking-service-info {
  display: flex;
  flex-direction: column;
}

.booking-service-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.booking-service-duration {
  font-size: 12px;
  background: #ffeb99;
  color: #555;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 4px;
  width: fit-content;
}

.booking-service-sub {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.booking-service-price {
  font-size: 18px;
  font-weight: bold;
  color: #3cab3c;
}

/*=== Cart Review ===*/
#cart-review {
  list-style: none;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  font-size: 15px;
  color: #333;
}

#cart-review li {
  margin-bottom: 10px;
}

/*=== Buttons ===*/
.form-nav {
  margin-top: 20px;
  text-align: right;
}

button.next-step,
button.add-service,
button[type="submit"],
button.next-step-btn {
  background-color: #006838;
  color: #fff;
  padding: 12px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background-color: #00b386;
}

button:active {
  transform: scale(0.97);
}

button.next-step-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/*=== Animation ===*/
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/*=== Mobile Responsive ===*/
@media (max-width: 768px) {
  .booking-wrapper {
    flex-direction: column;
  }

  .booking-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
  }

  .step-item {
    flex: 1 0 48%;
    text-align: center;
  }

  .booking-main {
    padding: 20px;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .step-item {
    flex: 1 0 100%;
  }

  .booking-main {
    padding: 15px;
  }
}

#appointment_time {
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/*------------Date & Time Styling---------------------*/
.date-time-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.date-time-row .field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

.date-time-row .field label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
}

.date-time-row .field input[type="text"],
.date-time-row .field select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.date-time-row .field input[type="text"]:focus,
.date-time-row .field select:focus {
  border-color: #5e245f;
  outline: none;
}

/* Make it responsive */
@media screen and (max-width: 600px) {
  .date-time-row {
    flex-direction: column;
  }
}

.booking-date-time-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.calendar-column,
.time-column {
  flex: 1 1 300px;
  max-width: 100%;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.time-slot-btn {
  padding: 10px;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.time-slot-btn:hover {
  background-color: #eee;
}

.time-slot-btn.selected {
  background-color: #333;
  color: #fff;
  border-color: #222;
}

/*------- Cart Review Section ----------*/

#cart-review {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 500px;
  margin-inline: auto;
}

#cart-review h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

#cart-review ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

#cart-review li {
  padding: 8px 15px;
  border-bottom: 1px dashed #ddd;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cart-review li:last-child {
  border-bottom: none;
}

#cart-review li .label {
  font-weight: 500;
  color: #444;
}

#cart-review li .value {
  color: #222;
}

#cart-review .summary-line {
  padding: 10px 15px;
  background-color: #fff;
  font-weight: bold;
  font-size: 16px;
  border-top: 2px dashed #ccc;
  text-align: right;
}

.cart-item-remove {
  color: #999;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  background: none !important;
  border: none;
  box-shadow: none !important;
}

.cart-item-remove:hover {
  color: red;
  background: none !important;
  box-shadow: none !important;
}

/* Payment & Confirmation Section */
/* Payment Methods Layout */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.payment-option {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px 20px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  background-color: #fff;
  gap: 15px;
}

.payment-option:hover,
.payment-option input:checked + .payment-label {
  border-color: #007bff;
}

.payment-option input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #007bff;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-label i {
  font-size: 30px;
  color: #007bff;
}

.payment-label b {
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

.payment-label span {
  font-size: 14px;
  color: #555;
  display: block;
}


/* GDPR Consent */
.gdpr-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.gdpr-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #007bff;
}

.gdpr-consent a {
  color: #007bff;
  font-weight: 500;
  text-decoration: underline;
}

.gdpr-consent a:hover {
  text-decoration: none;
}


/* Final Submit Button */
.submit-booking-btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-booking-btn:hover {
  background-color: #0056b3;
}

/* Step 2: Date & Time Layout Side-by-Side */
.booking-date-time-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap; /* optional for mobile friendliness */
  margin-bottom: 30px;
}

.calendar-column,
.time-column {
  flex: 1;
  min-width: 280px;
}

/* Ensure select and text are styled */
#appointment_time {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/*------- Mobile Responsiveness for the form -----------------*/
/* === Mobile Optimization for Booking Form === */
@media (max-width: 768px) {
  .booking-wrapper {
    flex-direction: column;
    padding: 0;
  }

  .booking-sidebar {
    width: 100%;
    background: #1a7e3d; /* Green background */
    padding: 15px 10px;
    border-bottom: none;
  }

  .booking-steps {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    max-width: 360px;
    margin-inline: auto;
    gap: 6px;
  }

  .step-item {
    flex: 1;
    background-color: #1a7e3d;
    color: white;
    font-weight: bold;
    padding: 0;
    border-radius: 50%;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 36px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
  }

  .step-item.active {
    background-color: #fbff00; /* Yellow */
    color: #000;
  }

  /* Hide step labels/titles */
  .step-item::before,
  .step-item span,
  .step-item .step-label {
    display: none !important;
  }

  .support-box {
    display: none;
  }

  .booking-main {
    padding: 15px;
  }

  .form-step {
    padding: 0 10px;
  }

  .booking-service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
  }

  .booking-service-icon {
    margin-bottom: 8px;
  }

  .submit-booking-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .gdpr-consent {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 13px;
  }

  .payment-methods {
    gap: 15px;
  }

  .payment-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .payment-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-date-time-wrapper {
    flex-direction: column;
  }
}

.sumo {
  background-color: #006838 !important;
  color: #fff; /* makes text white for contrast */
  border: none; /* optional: removes border */
}

/* Booking status notice */
.booking-notice {
  margin: 16px auto 0;
  padding: 12px 14px;
  max-width: 900px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.booking-notice.success {
  background: #ecfdf5;           /* soft green bg */
  border: 1px solid #10b981;     /* green border */
  color: #065f46;                 /* deep green text */
}

.booking-notice.error {
  background: #fef2f2;           /* soft red bg */
  border: 1px solid #ef4444;     /* red border */
  color: #7f1d1d;                 /* deep red text */
}

/* Optional: add a little fade-in */
.booking-notice {
  opacity: 0;
  transform: translateY(-4px);
  animation: bookingNoticeIn .25s ease-out forwards;
}

@keyframes bookingNoticeIn {
  to { opacity: 1; transform: translateY(0); }
}
