/* General Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1, h2, h3 {
    color: #35424a;
    margin: 0;
    font-weight: 300;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #008080;
}

/* Slideshow */
.full-width-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slideshow-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -40%);
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.slideshow-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.slideshow-text p {
    font-size: 1rem;
    color: #ffffff;
}

.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    color: #35424a;
    margin: 20px 0;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.filter-group {
    flex: 1 1 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-button {
    padding: 10px 20px;
    font-size: 16px;
    background: #008080;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    text-align: center;
    width: 200px;
}

.filter-button:hover {
    background: #32ffbe;
    transform: translateY(-2px);
}

.filter-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .filter-group {
        flex: 1 1 100%;
    }
    .filter-button {
        width: 100%;
    }
}

/* Services List Section */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
}

/* Service Card Layout */
.service-card {
    width: 340px;
    height: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    margin: 16px auto;
    box-sizing: border-box;
    padding: 0;
}

/* 16:9 Fixed Image */
.service-image-container {
    width: 100%;
    height: 191px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    border-radius: 0;
}

/* Info Section */
.service-info {
    padding: 18px 16px 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #35424a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-address {
    font-size: 1rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-email a {
    color: #008080;
    font-size: 0.98rem;
    text-decoration: none;
    word-break: break-all;
}

.service-phone a {
    color: #35424a;
    font-size: 0.98rem;
    text-decoration: none;
    word-break: break-all;
}
.service-phone a:hover {
    color: #008080;
}

.service-bio {
    font-size: 0.92rem;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
    min-height: 32px;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Discount Button */
.service-card .discount-btn {
    margin: 16px;
    margin-top: auto;
    width: calc(100% - 32px);
    padding: 12px 0;
    background: #008080;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-weight: 400;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 1px;
}
.service-card .discount-btn:hover {
    background: #32ffbe;
}

/* Modal Overlay */
.service-popup-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

/* Modal Content - Square Box */
.service-popup-content {
    background: #fff;
    border-radius: 8px;
    width: 350px;
    height: 350px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 32px 24px;
    box-sizing: border-box;
    text-align: center;
}

/* Close Button */
.service-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.service-popup-close:hover {
    color: #008080;
}

/* Form Styles */
#service-discount-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}
#service-discount-form input[type="email"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
#service-discount-form button {
    padding: 10px;
    border-radius: 3px;
    border: none;
    background: #008080;
    color: #fff;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#service-discount-form button:hover {
    background: #32ffbe;
}
#service-discount-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
#service-popup-message {
    min-height: 24px;
    font-size: 1rem;
}

/* Multi-step popup styles */
.popup-step { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.slider-row input[type="range"] {
    width: 80px;
    accent-color: #008080;
}
.notify-methods {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 8px;
}

/* Footer Section */
footer {
    background-color: #2e0aff;
    color: #ffffff;
    padding: 40px 20px;
    font-size: 14px;
    position: relative;
}

.footer-image {
    text-align: left;
    padding: 15px 10px 0px 20px;
    max-width: 1200px;
    margin: 0;
}

.footer-image img {
    max-height: 120px;
    width: auto;
    margin-left: 0;
    mix-blend-mode: screen;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #32ffbe;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ffffff;
}

.footer-section ul li a:hover {
    color: #008080;
}

.footer-section p {
    margin: 5px 0;
    opacity: 0.8;
}

.footer-section p a {
    color: #ffffff;
}

.footer-section p a:hover {
    color: #008080;
}

/* PSRA Number */
.footer-psra-number {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 12px;
    color: #d3d3d3;
    font-style: italic;
}

/* --- Filter Boxes Section Styling (from services2.html) --- */
.filter-boxes-section {
  width: 100vw;
  min-height: 500px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.filter-header {
  width: 100vw;
  max-width: 100vw;
  text-align: center;
  font-size: 2.2rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  color: #000000;
  margin: 36px 0 24px 0;
  letter-spacing: 0.5px;
  margin-bottom: 36px;
}
.filter-boxes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  width: 100vw;
  height: 100vw;
  max-width: 900px;
  max-height: calc(100vh - 170px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  justify-items: center;
  align-items: center;
}
.filter-box {
  background: none;
  border: 3px solid #1f1f1f;
  border-radius: 18px;
  padding: 0;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  overflow: hidden;
  height: 100%;
  max-height: none;
}
.filter-box:hover,
.filter-box:focus {
  border-color: #0a2342;
  background: #f5faff;
}
.filter-box:hover .filter-img,
.filter-box:focus .filter-img {
  background: #f5faff;
  filter: none;
  transform: none;
}
.filter-img {
  width: 82%;
  height: 82%;
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 18px;
  margin: 0 auto 12px auto;
  transition: background 0.18s;
  box-shadow: none;
  background: transparent;
  display: block;
}
.filter-box span {
  display: block;
  color: #000000;
  font-size: 1.4rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.2;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .filter-header {
    font-size: 1.3rem;
    margin: 18px 0 10px 0;
  }
  .filter-boxes-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 18px;
    width: 96vw;
    height: 96vw;
    max-width: 600px;
    max-height: calc(100vw - 28px);
    margin-left: auto;
    margin-right: auto;
  }
  .filter-box {
    aspect-ratio: 1 / 1;
    max-height: none;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        position: relative;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0;
        margin: 10px 0;
    }
    nav ul li {
        display: inline-block;
        margin: 0 10px;
    }
    .login-button {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    .login-button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    .slideshow-container {
        position: relative;
        height: 280px;
    }
    .slide img {
        transform: scale(1.0);
        object-fit: cover;
        margin-top: 0px;
    }
    .services-list {
        max-width: 100vw;
        padding: 0 8px;
    }
    .service-card {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .services-list {
        max-width: 100vw;
        padding: 0 8px;
    }
    .service-card {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
    }
}

.modern-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 0;
  border: 1px solid #e0e0e0;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
  margin: 0;         /* <-- Remove all margin */
  gap: 0;
  overflow: hidden;
}

.search-box,
.search-dropdown {
  display: flex;
  align-items: center;
  background: #fff;
  border: none;
  border-right: 1px solid #e0e0e0;
  padding: 0 1em;
  min-width: 140px;
  height: 44px;
  font-size: 1em;
  flex: 1 1 140px;
  border-radius: 0;
}

.search-box input {
  border: none;
  background: transparent;
  font-size: 1em;
  width: 100%;
  outline: none;
  padding: 0.4em 0;
}

.search-dropdown select,
.search-dropdown button,
.search-dropdown input {
  border: none;
  background: transparent;
  font-size: 1em;
  outline: none;
  height: 100%;
  width: 100%;
  padding: 0;
}

.search-dropdown:last-of-type {
  border-right: none;
}

.search-btn {
  background: #00ffc8;
  color: #000000;
  border: none;
  border-radius: 0;
  padding: 0 2em;
  height: 44px;
  font-size: 1.08em;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5em;
  border-left: 1px solid #e0e0e0;
}

.search-box {
  flex: 3 1 260px; /* Grow 3x as much as dropdowns, min-width 260px */
}

.search-btn:hover {
  background: #32ffbe;
}

.search-dropdown {
  flex: 1 1 120px; /* Default for dropdowns */
}

.slideshow-text {
  text-align: center;
  width: 100%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff; /* Optional: for better contrast */
  z-index: 2;
}


@media (max-width: 900px) {
  .modern-search-bar {
    flex-wrap: wrap;
    max-width: 100vw;
    gap: 0;
    padding: 0;
    margin: 0;
    height: 38px; /* Make the bar itself shorter */
  }
  .search-box, .search-dropdown, .search-btn {
    min-width: 80px;
    flex: 1 1 80px;
    font-size: 0.95em;
    height: 32px;      /* Make each element shorter */
    border-radius: 0;
    padding: 0 0.5em;  /* Less padding for compactness */
  }
  .search-box input {
    font-size: 0.95em;
    padding: 0.2em 0;
  }
  .search-btn {
    padding: 0 1em;
    font-size: 1em;
  }
}

