/* Container */
.ahfst {
	--ring:#e2e8f0;
	--muted:#64748b;
	--ink:#111;
	--bg:#fff;
}

.ahfst {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Search bar */
.the-services-tabs .ahfst .ahfst__search {
	width: 80%;
	display: flex;
	align-items: center;
    background-color: #f9f9f9;
    border-radius: 50px;
    padding: 10px 40px;
    border: 1px solid #e9e7e8;
    position: relative;
}

.the-services-tabs .ahfst .ahfst__searchList {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 40px;
    margin-top: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.the-services-tabs .ahfst .ahfst__searchList .ahfst__searchItem {
    width: 100%;
    text-align: left;
    background: transparent;
    padding: 10px 0px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.the-services-tabs .ahfst .ahfst__search input {
	width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    background-color: transparent;
    height: auto;
}

.the-services-tabs .ahfst .ahfst__searchIcon {
    font-size: 24px;
}

/* Tabs row */
.the-services-tabs .ahfst .ahfst__tabs {
	display:flex;
	justify-content: center;
	align-items:center;
	overflow-x:auto;
	padding:8px 0;
	margin-top: 35px;
    margin-bottom: 35px;
}

.the-services-tabs .ahfst .ahfst__tab {
	appearance:none;
	background:transparent;
	border:none;
	cursor:pointer;
	color:var(--muted);
	display:flex;
	flex-direction:column;
	align-items:center;
	gap: 10px;
	padding:18px 26px;
	transition: .3s;
    border-bottom: 2px solid #f2f2f2;
	font-weight:600;
	letter-spacing:.02em;
}

.the-services-tabs .ahfst .ahfst__tabIcon {
	font-size:22px;
}

.the-services-tabs .ahfst .ahfst__tabIcon img {
    width: 35px !important;
    height: 35px !important;
}

.the-services-tabs .ahfst .ahfst__tab.is-active {
	color:#1e3a8a;
	border-bottom-color:#1e3a8a;
}

.the-services-tabs .ahfst .ahfst__tab:hover {
	color:#1e3a8a;
	border-bottom-color:#1e3a8a;
}

/* Panel */
.the-services-tabs .ahfst .ahfst__panel { }

.the-services-tabs .ahfst .ahfst__chips {
	display:flex;
	justify-content: center;
	align-items: center;
	flex-wrap:wrap;
	gap:18px;
	margin-top:8px;
}

.the-services-tabs .ahfst .ahfst__chip {
	padding:14px 20px;
	background:#fff;
	border:1px solid #e9e7e8;
	border-radius:999px;
	cursor:pointer;
	font-weight:600;
	color:var(--ink);
}

.the-services-tabs .ahfst .ahfst__chip:hover {
	box-shadow:0 1px 0 0 var(--ring);
}

/* Small screens */
@media (max-width: 767px) {
  .the-services-tabs .ahfst .ahfst__search {
    width: 100%;
  }
}

/* Chip + label tweaks */
@media (max-width:640px) {
	.the-services-tabs .ahfst .ahfst__chip {
    	padding:12px 16px;
    }
    .the-services-tabs .ahfst .ahfst__tab span:last-child {
    	font-size:13px;
    }
}

@media (max-width:450px) {
    .the-services-tabs .ahfst .ahfst__search {
        padding: 10px 15px;
    }
}

/* Swiper integration: mobile behavior */
@media (max-width: 767px) {
  .the-services-tabs .ahfst .ahfst__tabs.swiper {
    width: 100%;
    justify-content: flex-start;
  }

  .the-services-tabs .ahfst .ahfst__tabs .swiper-wrapper {
    align-items: stretch;
  }

  .the-services-tabs .ahfst .ahfst__tab.swiper-slide {
    flex: 0 0 auto;
    width: auto;
  }

  .the-services-tabs .ahfst .ahfst__tabs::-webkit-scrollbar {
    display: none;
  }
  .the-services-tabs .ahfst .ahfst__tabs {
    scrollbar-width: none;
  }

  .the-services-tabs .ahfst .ahfst__tabs .swiper-pagination {
    position: relative;
    margin-top: 8px;
    text-align: center;
  }

  .the-services-tabs .ahfst .ahfst__tabs .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    opacity: .4;
    background: #1e3a8a;
  }

  .the-services-tabs .ahfst .ahfst__tabs .swiper-pagination-bullet-active {
    opacity: 1;
  }
}

/* Swiper integration: desktop fallback */
@media (min-width: 768px) {
  .the-services-tabs .ahfst .ahfst__tabs.swiper {
    overflow: visible;
  }

  .the-services-tabs .ahfst .ahfst__tabs .swiper-wrapper {
    display: flex;
    justify-content: center;
    transform: none !important;
  }

  .the-services-tabs .ahfst .ahfst__tab.swiper-slide {
    width: auto !important;
  }

  .the-services-tabs .ahfst .ahfst__tabs .swiper-pagination {
    display: none !important;
  }
}

/***********************************/

/* Popup overlay + base */
.ahfst-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  place-items: center;
  z-index: 9999;
}

.ahfst-popup-overlay.is-visible {
  display: grid;
}

/* Popup box */
.ahfst-popup {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  padding-top: 50px;
  max-width: 600px;
  min-height: 250px;
  width: 95%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  position: relative;
  animation: ahfst-popup-in 0.25s ease;
}

@keyframes ahfst-popup-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Content */
.ahfst-popup__close {
  position: absolute;
  top: 10px; right: 14px;
  border: none; background: transparent;
  font-size: 24px; line-height: 1; cursor: pointer;
}

.ahfst-popup__title {
  font-size: 20px; font-weight: 700; margin-bottom: 10px;
}

.ahfst-popup__text {
  margin-bottom: 20px; color: #475569;
}

.ahfst-popup__action {
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.ahfst-popup__action:hover {
  background: #1d4ed8;
}

.the-services-tabs .wpcf7-form {
    color: #000;
}

.the-services-tabs .wpcf7-form .help-text {
    font-size: 14px;    
}

.the-services-tabs .wpcf7 textarea {
    height: 7em;
    min-height: 4em;
}

.the-services-tabs .wpcf7 .uacf7-buttons {
    margin-bottom: 0;
}

.the-services-tabs .wpcf7 .uacf7-step {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.the-services-tabs .wpcf7 .wpcf7-submit-style .submit-style-in {
    width: auto;
    max-width: 150px;
}

.the-services-tabs .wpcf7 .uacf7-steps {
    margin-bottom: 20px;    
}

