.card:hover {
    border: 1px solid #3b82f6;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.provider-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
}

.object-fit-cover {
  object-fit: cover;
}

.provider-card {
  border-radius: 10px;
  overflow: hidden;
}


.search-form h1 {
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.search-btn{
    background-color: #1e3a8a;
    color: white;
}

.search-btn:hover{
    background-color: #3b82f6;
    color: white;
}

.provider-card:hover {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.image-section {
    position: relative;
    width: 300px; /* Fixed width for consistency */
    overflow: hidden;
}

.provider-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fit without distortion */
    object-position: center;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px; 
    display: flex;
    gap: 8px;
}

.save-btn, .share-btn {
    border-radius: 50%;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.save-btn:hover, .share-btn:hover {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a243c;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5f616f;
}

.card-text strong {
    color: #1a243c;
}

.badge-custom {
    font-size: 0.85rem;
    padding: 0.5em 1em;
    border-radius: 12px;
    background-color: #1e3a8a;
}

.badge-rating{
    background-color: #1e3a8a;
}

.btn-action {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-action:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.05);
    color: white;
}

.action-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.action-buttons .btn:hover {
    background-color: #1a243c;
    border-color: #1a243c;
    transform: scale(1.1);
}

.action-buttons .btn:hover i {
    color: #fff;
}

.rating-stars {
    font-size: 1.2rem;
    color: #f4b400;
}

.phone-link {
    color: #1a243c;
    text-decoration: none;
    font-weight: 500;
}

.phone-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.rating .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    background-color: #3b82f6;
    color: #ffffff;
}

.stars {
    color: #f59e0b; /* Amber for stars */
    font-size: 0.9rem;
}

.website-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
}

.website-link:hover {
    text-decoration: underline;
}

.selected-services {
    font-size: 0.95rem;
}

.selected-service-badge {
    display: inline-block;
    background-color: #dbeafe; /* Light blue background for badges */
    color: #1e40af;
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
    border-radius: 16px;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.selected-service-badge:hover {
    background-color: #bfdbfe;
}

.view-deal-btn {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 1rem;
    width: auto; /* Button only takes needed width */
    transition: background-color 0.2s ease;
}

.view-deal-btn:hover {
    background-color: #2563eb;
}

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.no-spinner {
    -moz-appearance: textfield;
}


.hero-title p {
    font-size: 20px;
    margin-bottom: 25px;
    color: #666;
}

.hero-title h1 {
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-icon img{
    width: 80px;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card:hover .service-name {
    color: white;
}

.service-card.active {
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25);
}

.service-icon {
    font-size: 30px;
    /* margin-bottom: 15px; */
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.service-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: color 0.4s ease;
}

.search-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

#searchServiceSuggestions{
  position: absolute;
  left: 300px;
}