/* Find Dentist Template Styles */
.find-dentist-container {
    background: #ffffff;
    contain: layout style;
}

.find-dentist-container .leaflet-container {
	border-radius: 25px !important;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7f5 100%);
    padding: 95px 120px;
    margin-bottom: 0;
    will-change: transform;
}

/* Results Hero Banner */
.results-hero-banner {
    background: #D1E7E9 !important;
}

.hero-banner.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-banner.hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #002F5F;
    margin: 0 0 20px 0;
    line-height: 48px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #002F5F;
    margin: 0;
    line-height: 1.4;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.hero-image-frame {
    width: 100%;
    overflow: hidden;
    border: 2px solid #002F5F;
    border-radius: 25px;;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .hero-banner {
    padding: 50px !important;
  }
  .hero-title {
    font-size: 30px !important;
    letter-spacing: 0 !important;
  }
}



/* Responsive Hero Banner */
@media screen and (max-width: 767px) {
	.practice-card .sub-title {
		margin-bottom: 5px !important;
	}
  .hero-banner {
    padding: 40px 20px !important;
}
    .hero-banner {
        padding: 40px 20px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text {
        flex: none;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px !important;
        letter-spacing: 0 !important;

    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-image-frame {
        max-width: 300px;
        border-width: 6px;
        border-radius: 16px;
    }
    
    .hero-img {
        border-radius: 10px;
    }
}

@media screen and (max-width: 480px) {
    .hero-banner {
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-image-frame {
        max-width: 100%;
        border-width: 4px;
        border-radius: 12px;
    }
}

/* Progress Bar */
.progress-container {
    padding: 80px 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#skipLinkContainer {
  padding: 71px 20px 64px 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ffb366;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 20px;
}

.progress-fill {
    height: 100%;
    background: #ff6b35;
    width: 25%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.skip-link {
    text-align: right;
    flex-shrink: 0;
}

.skip-link a {
    color: #002F5F;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 16px;
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.skip-link a:hover {
    font-size: 16px;
}

/* Step Container */
.step-container {
    padding: 95px 20px 95px;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    width: 100%;
    text-align: center;
}

.step-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #002F5F;
    margin-bottom: 3rem;
    line-height: 48px !important;
    letter-spacing: 0 !important;
}

/* ZIP Code Input */
.zip-input-container {
    margin-bottom: 3rem;
}

.zip-input {
    width: 100%;
    max-width: 466px;
    padding: 20px;
    font-size: 1.2rem;
    border: 1px solid #002F5F !important;
    border-radius: 30px !important;
    text-align: left;
    outline: none;
    transition: border-color 0.3s ease;
    height: 48px !important;
    font-size: 16px;
}

.zip-input:focus {
    border-color: #ff6b35;
}

/* Coverage Options */
.coverage-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 3rem;
}

.coverage-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #F49745;
    border-radius: 25px;
    background: #FFF7ED;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 72px;
    color: #002F5F;
    text-align: center;
    justify-content: center;
}

.coverage-option:hover, .coverage-option.selected {
    background: rgba(244, 151, 69, 0.5) !important;
    color: #002F5F !important;
}

.coverage-option.selected span{
    color: #002F5F;
}

.coverage-radio {
    display: none;
}

.option-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002F5F;
}

.coverage-option.selected .option-text {
    color: #002F5F;
}

/* Language Options */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 3rem;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #F49745;
    border-radius: 25px;
    background: #FFF7ED;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 72px;
    color: #002F5F;
    text-align: center;
    justify-content: center;
}

.language-option:hover, .language-option.selected {
    background: rgba(244, 151, 69, 0.5) !important;
    color: #002F5F !important;
}

.language-radio {
    display: none;
}

.language-option .option-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002F5F;
}

.language-option.selected .option-text {
    color: #002F5F;
}

/* Care Options */
.care-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 3rem;
}

.care-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #F49745;
    border-radius: 25px;
    background: #FFF7ED;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 72px;
    color: #002F5F;
    text-align: center;
    justify-content: center;
}

.care-option:hover {
    background: rgba(244, 151, 69, 0.5) !important;
    color: #002F5F !important;
}

.step-container#step4 .care-option {
  justify-content: flex-start !important;
  text-align: left !important;
}

.step-container#step4 .option-content {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  display: block !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #002F5F !important;
  line-height: 22px !important;
}

.care-checkbox {
    display: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.option-title {
    font-size: 20px;
    font-weight: 600;
    color: #002F5F;
    line-height: 22px;
}

.option-description {
    font-size: 16px;
    color: #002F5F;
    line-height: 22px;
    font-weight: 400;
}

.care-option.selected .option-title,
.care-option.selected .option-description {
    color: #002F5F;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.results-layout .step-navigation {
  display: none !important;
}

/* Hide progress bar in results step */
.step-container#step5 .progress-container {
    display: none !important;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

.practice-card {
    will-change: transform;
    transform: translateZ(0);
}

.dental-map {
    will-change: transform;
    transform: translateZ(0);
}

/* Completed step styling */
.step-container.completed {
    opacity: 0.6;
    pointer-events: none;
}

.step-container.completed .zip-input {
    background-color: #e8f5e8 !important;
    border-color: #4caf50 !important;
}

.step-container.completed .step-title {
    color: #4caf50;
}

.step-container.completed .step-title::after {
    content: ' ✓ Completed';
    color: #4caf50;
    font-weight: bold;
    margin-left: 10px;
}

.btn-previous,
.btn-next,
.btn-restart {
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
    height: 48px;
}

.btn-previous {
    background: #ffffff;
    color: #002F5F;
    border: 2px solid #002F5F;
}

.btn-previous:hover, .btn-previous:focus {
    background: #002F5F !important;
    color: #ffffff !important;
}

.btn-next,
.btn-restart {
    background: #002F5F;
    color: #ffffff;
    border: 2px solid #002F5F;
}

.btn-next:hover,
.btn-restart:hover {
    background: #ffffff !important;
    color: #002F5F !important;
}

/* Results Container */
.results-container {
    margin-top: 2rem;
}

.results-header {
    margin-bottom: 2rem;
}

.results-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
}

/* Results Page Layout */
.results-page {
    min-height: 100vh;
    background: #ffffff;
}

.filter-container {
    display: flex;
    gap: 15px;
    max-width: 1200px;
    flex-wrap: wrap;
}

.zip-filter {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    min-width: 115px;
}

.zip-input-filter {
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    width: 100px;
}

.search-btn {
    background: none;
    border: none;
    color: #ff6b35;
    cursor: pointer;
    padding: 5px;
	border: 0 !important;
    border-radius: 0 !important;
    height: 100%;
}

.results-layout {
    display: flex;
    gap: 20px;
  }

.map-column {
    flex: 1;
    max-width: 50%;
    position: relative;
}

.dental-map {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 100px);
    border-radius: 8px;
    border: 2px solid #002F5F;
}

/* Map label styling */
.map-label {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #002F5F;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.results-header {
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002F5F;
    margin: 0 0 10px 0;
}

.results-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Practice Cards Styles */
.practice-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.title-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.title-section {
    flex: 1;
}

.main-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #002F5F;
    margin: 0 0 5px 0;
}

.sub-title {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.location-info,
.phone-info {
    margin-bottom: 15px;
}

.distance-info-mobile {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.distance-info-mobile.location-enabled {
    display: flex;
}

.distance-info-mobile.location-disabled {
    display: none;
}

.distance-info-mobile .distance {
    color: #404040;
    font-weight: 500;
    font-size: 16px;
}

.address,
.phone {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
}

.location-icon,
.phone-icon {
    margin-right: 8px;
    color: #002F5F;
}

.practice-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
}

.practice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.language-tag {
    background: #fff3e0;
    color: #ff6b35;
    border: 1px solid #ff6b35;
}

.insurance-tag {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.service-tag {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.practice-actions {
    margin-left: 15px;
}

.call-btn {
    background: #002F5F;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.call-btn:hover {
    background: #1a252f;
}

.loading-message,
.error-message,
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error-message {
    color: #e74c3c;
}

/* Pagination Styles - Matching Service Template */
.pagination {
    display: flex;
    align-items: start;
    gap: 5px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 30px 0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn {
    background: transparent;
    color: #AFB1B6;
    padding: 0px 15px;
    cursor: pointer;
    font-size: 35px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
	height: 25px;
}

.pagination-btn:hover:not(:disabled) {
    background: transparent;
    color: #000;
}

.pagination-btn:disabled {
    color: #AFB1B6;
    cursor: not-allowed;
	display: none !important;
}

.pagination-btn:focus, .pagination-btn:active { 
    background: transparent !important;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    background: transparent;
    color: #AFB1B6;
    padding: 10px 5px;
    border: none !important;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.page-number:hover {
    color: #000;
    background: transparent !important;
}

.page-number.active {
    background: transparent;
    color: #000;
    border-color: #404040;
    border: none !important;
}

.arrow {
    font-size: 18px;
    font-weight: bold;
}

.results-count {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Filter Dropdown Styles */
.desktop-language-filter,
.desktop-insurance-filter,
.desktop-service-filter {
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 200px;
}

.language-filter-header,
.insurance-filter-header,
.service-filter-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.language-filter-header:hover,
.insurance-filter-header:hover,
.service-filter-header:hover {
    background-color: #f8f9fa;
}

.language-filter-header.active,
.insurance-filter-header.active,
.service-filter-header.active {
    background-color: #e3f2fd;
    border-bottom: 1px solid #2196f3;
}

.language-filter-title,
.insurance-filter-title,
.service-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #002F5F;
    margin: 0;
}

.language-filter-arrow,
.insurance-filter-arrow,
.service-filter-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.language-filter-arrow.rotated,
.insurance-filter-arrow.rotated,
.service-filter-arrow.rotated {
    transform: rotate(180deg);
}

.language-filter-content,
.insurance-filter-content,
.service-filter-content {
    padding: 15px;
}

.language-checkbox-group,
.insurance-radio-group,
.service-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.language-checkbox-item,
.insurance-radio-item,
.service-checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.language-checkbox,
.insurance-radio,
.service-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-label,
.radio-label {
    font-size: 14px;
    color: #002F5F;
    font-weight: 500;
}

.language-filter-actions,
.insurance-filter-actions,
.service-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.language-clear-btn,
.insurance-clear-btn,
.service-clear-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.language-clear-btn:hover,
.insurance-clear-btn:hover,
.service-clear-btn:hover {
    background: #e9ecef;
}

.language-apply-btn,
.insurance-apply-btn,
.service-apply-btn {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.language-apply-btn:hover,
.insurance-apply-btn:hover,
.service-apply-btn:hover {
    background: #e55a2b;
}

@media (min-width: 768px)  and (max-width: 1023px) {
  .progress-bar {
    width: 350px !important;
  }
}

@media screen and (min-width: 1600px) {
  .skip-link a {
    font-size: 24px !important;
  }
  .skip-link a:hover {
    font-size: 24px !important;
  }
}

@media (max-width: 1023px) {
	.results-layout {
		flex-direction: column !important;
	}
  .mobile-hero-subtitle {
    display: block;
    }
  .desktop-hero-subtitle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    line-height: 48px !important;
  }
  .mobile-hero-subtitle {
    display: none;
    }
  .desktop-hero-subtitle {
    display: block;
  }
  .progress-bar {
    width: 466px !important;
  }
}

@media (min-width: 768px) {
  .step-container .filter-bar {
    padding: 20px 0 10px;
    margin-bottom: 0;
  }
  #step1 .step-navigation {
    justify-content: flex-end !important;
  }
  .step-container#step1, .step-container#step2, .step-container#step3, .step-container#step4 {
    max-width: 600px !important;
  }
  .skip-link {
    position: absolute;
    top: 0;
    right: 0;
  }
}

/* Mobile Filter System Styles */
.mobile-filter-container {
    display: none;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
}

.mobile-filter-wrapper {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.mobile-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.mobile-filter-select {
    width: 100%;
    max-width: 100%;
    padding: 9px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 16px;
    color: #404040;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 40px;
    box-sizing: border-box;
}

.mobile-filter-select:focus {
    border-color: #404040;
}

.mobile-filter-inputs {
    margin-top: 15px;
    animation: slideDown 0.3s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.mobile-filter-input {
    display: flex;
    gap: 0px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-filter-input input[type="text"] {
    flex: 1;
    padding: 4px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    color: #404040;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
}

.mobile-filter-input input[type="text"]:focus {
    border-color: #404040;
}

.mobile-filter-dropdown {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 16px;
    color: #404040;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 40px;
    box-sizing: border-box;
}

.mobile-filter-dropdown:focus {
    border-color: #404040;
}

.mobile-map-toggle-btn {
    flex-shrink: 0;
    padding: 9px 15px;
    background-color: #F2B052;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.mobile-map-toggle-btn:hover {
    background-color: #e0a048;
}

.mobile-search-btn {
    padding: 5px 10px;
    background-color: #167D83;
    color: #ffffff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-search-btn:hover {
    background-color: #0f5f65;
}

/* Show mobile filter only on mobile devices */
@media (max-width: 767px) {
    
    #mobileInsuranceContent,
    #mobileServiceContent,
    #mobileLanguageContent {
        position: relative !important;
    }
    .mobile-filter-container {
        display: block;
        padding: 15px 0;
        margin: 0;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        clear: both;
        position: relative;
        z-index: 1;
    }
    
    .mobile-filter-row {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .mobile-filter-select {
        flex: 1;
    }
    
    .mobile-map-toggle-btn {
        flex-shrink: 0;
        padding: 9px 15px;
        background-color: #F2B052;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-map-toggle-btn:hover {
        background-color: #e0a048;
    }
    
    .mobile-filter-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-filter-select,
    .mobile-filter-dropdown,
    .mobile-filter-input input[type="text"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    /* Hide desktop search filters on mobile */
    .filter-bar {
        display: none !important;
    }
}

/* Hide mobile filter on desktop */
@media (min-width: 769px) {
    .mobile-filter-container {
        display: none !important;
    }
}

/* Mobile View Toggle Classes */
.mobile-view-list .practice-listings-column {
    display: block !important;
}

.mobile-view-list .map-column {
    display: none !important;
}

.mobile-view-map .practice-listings-column {
    display: none !important;
}

.mobile-view-map .map-column {
    display: block !important;
}

/* Desktop View - Show both columns */
@media (min-width: 769px) {
    .mobile-view-list .map-column {
        display: block !important;
    }
    
    .mobile-view-map .practice-listings-column {
        display: block !important;
    }
}

/* Hide map button when map is showing */
.mobile-view-map .mobile-map-toggle-btn {
    display: none;
}

/* Show map button when list is showing */
.mobile-view-list .mobile-map-toggle-btn {
    display: flex;
}

/* Map List Button */
.map-list-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 12px 20px;
    background-color: #002F5F;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-list-btn:hover {
    background-color: #1a252f;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Show list button when map is showing */
.mobile-view-map .map-list-btn {
    display: flex !important;
}

/* Hide list button when list is showing */
.mobile-view-list .map-list-btn {
    display: none !important;
}

/* Ensure navigation buttons are visible in results step */
.step-container#step5 .step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px 0;
}

.step-container#step5 .btn-previous,
.step-container#step5 .btn-restart {
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
    height: 48px;
}

.step-container#step5 .btn-previous {
    background: #ffffff;
    color: #002F5F;
    border: 2px solid #002F5F;
}

.step-container#step5 .btn-previous:hover {
    background: #002F5F !important;
    color: #ffffff !important;
}

.step-container#step5 .btn-restart {
    background: #002F5F;
    color: #ffffff;
    border: 2px solid #002F5F;
}

.step-container#step5 .btn-restart:hover {
    background: #ffffff !important;
    color: #002F5F !important;
}

/* Responsive Design */
@media (max-width: 767px) {  
  #step1 .step-navigation {
    justify-content: center !important;
  }
    .progress-container {
      padding: 50px 20px 0px 20px !important;
    }
    #skipLinkContainer {
      padding: 20px 20px 40px 20px;
    }
    .step-container {
        padding: 0px 15px 60px;
    }
    
    .step-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .zip-input {
        font-size: 1rem;
        padding: 15px;
    }
    
    .coverage-option,
    .care-option {
        padding: 15px;
    }
    
    .step-navigation {
        flex-direction: row;
        gap: 15px;
    }
    
    .btn-previous,
    .btn-next,
    .btn-restart {
        width: 100%;
    }
    
    .title-rating-row {
        flex-direction: column;
        align-items: flex-start;
		margin-bottom: 5px !important;
    }
    
    .rating-info {
        align-items: flex-start;
        margin-top: 0px;
    }
    
    .practice-bottom-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .practice-actions {
        margin-left: 0;
    }
    
    .call-btn {
        width: 100%;
    }
    
    .results-layout {
        flex-direction: column;
    }
    
    .practice-listings-column,
    .map-column {
        max-width: 100%;
    }
    
    .dental-map {
        min-height: 400px;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-bar {
        margin-right: 0;
    }
}

.step-container#step1.completed {
  display: none !important;
}

.find-dentist-container.results-page .progress-container {
	display: none;
}

#nextFromZip:focus, #nextFromCoverage:focus, #nextFromLanguage:focus, #nextFromCare:focus {
	color: #fff !important;
}
#nextFromZip:focus:hover, #nextFromCoverage:focus:hover, #nextFromLanguage:focus:hover, #nextFromCare:focus:hover {
	color: #002F5F !important;
}

@media screen and (min-width: 1921px) {
	.step-container#step5 {
		max-width: 70% !important;
	}
}
.find-dentist-container .desktop-service-filter,
.find-dentist-container .desktop-insurance-filter,
.find-dentist-container .desktop-language-filter {
	overflow: unset !important;
	z-index: 9999 !important;
}
.find-dentist-container .service-filter-content, 
.find-dentist-container .insurance-filter-content,
.find-dentist-container .language-filter-content {
	position: absolute;
}
.care-option.selected {
	background: rgba(244, 151, 69, 0.5) !important;
}
#resultsSearchBtn:focus, #resultsSearchBtn:hover {
	color: #fff !important;
	transition: all 0.3s ease;
}
@media screen and (min-width: 1200px) {
	.option-text {
		font-size: 23px !important;
	}
	.skip-link a {
		font-size: 24px !important;
	}
}
@media screen and (min-width: 1920px) {
	.progress-container {
		width: 70%;
		margin: 0 auto;
	}
}
@media screen and (min-width: 768px) and (max-width: 800px) {
	.desktop-language-filter, .desktop-insurance-filter, .desktop-service-filter {
		width: 180px !important;
	}
}