/* ================================
       Modal & Global Styling
================================ */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto; /* Allow vertical scrolling if needed */
}

.modal-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  max-height: 90vh; /* Allow content to use up to 90% of viewport height */
  overflow-y: auto;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  transition: transform 0.2s ease-in-out;
}

.modal-content:hover {
  transform: scale(1.02);
}

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

/* ================================
           Close Button
================================ */
.close {
  position: absolute;
  top: 0px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff4d4d;
}

/* ================================
           Step Container Styling
================================ */
#step-1,
#step-2,
#step-3,
#step-4,
#step-5 {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  #step-1,
  #step-2,
  #step-3,
  #step-4,
  #step-5 {
    padding: 50px;
  }
}

#step-1 {
  text-align: center;
}

#choose-service {
  font-size: 26px;
  font-weight: bold;
  color: #444 !important;
  margin-bottom: 15px;
}

#whereulive {
  font-size: 18px;
  color: #444 !important;
  margin-bottom: 20px;
}

#selected-area {
  font-weight: bold;
  color: #444;
}

.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content input[type="time"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content textarea,
.modal-content select {
  width: 100%;
  max-width: 480px;
  padding: 12px 14px; /* Slightly reduced padding for compact design */
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: block; /* Keep this for consistent stacking */
  margin: 6px auto 16px; /* Reduced vertical spacing */
  box-sizing: border-box;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.2);
  background: #fff;
  outline: none;
}

.modal-content textarea {
  resize: vertical;
  min-height: 80px; /* More compact textarea */
}

.modal-content label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px; /* Tighter spacing between label and input */
  padding: 0 8px;
  color: #444;
  display: block;
  text-align: left;
  max-width: 480px;
}

/* ================================
       Checkbox & Radio Styling
================================ */
.modal-content .radio-group input[type="radio"],
.modal-content .checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
  cursor: pointer;
}

.modal-content .radio-group label,
.modal-content .checkbox-group label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

/* Adjust radio group container positioning */
.modal-content .radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 20px;
  max-width: 480px;
  text-align: left;
}

/* ================================
           Button Styling
================================ */
/* Retaining your original button styles exactly as before */
button {
  padding: 14px 24px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  margin: 10px 5px;
}

button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.continue-btn,
[id^="continue-btn"] {
  background: #007bff;
  color: #fff;
}

.continue-btn:hover,
[id^="continue-btn"]:hover {
  background: #0056b3;
}

.back-btn,
[id^="back-btn"] {
  background: #ccc;
  color: #333;
  font-weight: bold;
}

.back-btn:hover,
[id^="back-btn"]:hover {
  background: #999;
}

/* ================================
       Service Description Container
================================ */
#service-description-container {
  text-align: left;
  width: 100%;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* ================================
       Responsive Adjustments
================================ */
@media (max-width: 600px) {
  .modal-content {
    border-radius: 12px;
  }

  #choose-service {
    font-size: 22px;
  }

  #whereulive {
    font-size: 16px;
  }

  .modal-content input[type="text"],
  .modal-content input[type="number"],
  .modal-content input[type="date"],
  .modal-content input[type="time"],
  .modal-content input[type="email"],
  .modal-content input[type="tel"],
  .modal-content textarea,
  .modal-content select {
    font-size: 14px;
    padding: 12px 14px;
  }

  button {
    font-size: 16px;
    padding: 12px 18px;
  }
}

#offer {
  font-size: 16px;
  display: block;
}

.modal-content .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px auto;
  max-width: 480px;
  text-align: left;
}

.modal-content .checkbox-group input[type="checkbox"] {
  margin-top: 2px; /* Aligns the checkbox with the text */
  transform: scale(
    1.2
  ); /* Makes the checkbox slightly larger for better visibility */
  cursor: pointer;
}

.modal-content .checkbox-group label {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.modal-content #offer {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  flex: 1; /* Ensures the text takes up available space */
}

.wp-block-kubio-column__inner.style-nJpox2eRXHV-inner.style-local-305-inner.d-flex.h-flex-basis.h-px-lg-2.v-inner-lg-2.h-px-md-2.v-inner-md-2.h-px-2.v-inner-2 {
  display: none;
}
.wp-block-kubio-column__align .wp-block-kubio-copyright {
  display: none;
}
/* ====================================================
   Price List Container & Background Layers
==================================================== */
.wp-block-kubio-column__inner.style-local-44-inner {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  max-width: 800px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Hide background layers if they’re not needed */
.wp-block-kubio-column__inner.style-local-44-inner .background-wrapper {
  display: none;
}

/* ====================================================
   Price List Heading
==================================================== */
.wp-block-kubio-heading__text.style-local-45-text {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

/* ====================================================
   Price List Subtitle / Tagline
==================================================== */
.wp-block-kubio-text__text.style-local-46-text.h-lead {
  font-size: 1.15rem;
  color: #555;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* ====================================================
   Price List Container & Background Layers
==================================================== */
.wp-block-kubio-column__inner.style-local-44-inner {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  max-width: 800px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Hide background layers if they’re not needed */
.wp-block-kubio-column__inner.style-local-44-inner .background-wrapper {
  display: none;
}

/* ====================================================
   Price List Container & Background
==================================================== */
.wp-block-kubio-column__inner.style-local-44-inner {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  max-width: 800px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ====================================================
   Price List Items - Table Style
==================================================== */
.wp-block-kubio-text__text.style-local-47-text {
  display: grid;
  grid-template-columns: 1fr 100px; /* Two columns: 1 for service, 1 for price */
  gap: 12px 16px;
  font-size: 1.2rem;
  color: #333;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* Service Name */
.wp-block-kubio-text__text.style-local-47-text strong {
  font-weight: 700;
  color: #333;
  text-align: left;
}

/* Price */
.wp-block-kubio-text__text.style-local-47-text strong + span {
  text-align: right;
  font-weight: 400;
}

/* ====================================================
   Responsive Adjustments
==================================================== */
@media (max-width: 600px) {
  .wp-block-kubio-text__text.style-local-47-text {
    grid-template-columns: 1fr; /* Stack service and price vertically */
  }

  .wp-block-kubio-text__text.style-local-47-text span {
    text-align: left;
    margin-top: 4px;
  }
}

#contact-step5,
#successmsg {
  color: #333 !important;
  font-size: 20px;
}

#step5 {
  display: none;
}

#email-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Ensure it's on top of everything */
  backdrop-filter: blur(5px); /* Adds a nice blur effect */
}

.spinner {
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#estimated-price {
  color: #333 !important;
}
