/* Service Provider Finder - Frontend Styles (RTL) */
/* Palette: Teal #0d9488 | Coral #f97316 | Blue #2563eb */

.spf-finder {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    max-width: 800px;
    margin: 30px auto;
}

/* Search Box */
.spf-search-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.spf-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.spf-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.spf-filter-group {
    flex: 1;
    min-width: 180px;
}

.spf-filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.spf-filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #334155;
    background-color: #f8fafc;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.spf-filter-group select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.spf-filter-group select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.spf-search-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.spf-search-btn:hover {
    background: #0a7c72;
}

.spf-search-btn:active {
    background: #086b62;
}

/* Loading */
.spf-loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
}

.spf-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: spf-spin 0.7s linear infinite;
    margin-bottom: 12px;
}

@keyframes spf-spin {
    to { transform: rotate(360deg); }
}

/* Results */
.spf-results-count {
    font-size: 15px;
    color: #64748b;
    margin: 20px 0 12px;
    padding: 0 4px;
}

.spf-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Provider Card */
.spf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.spf-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.spf-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.spf-card-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 14px 0;
}

.spf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.spf-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.spf-tag-city {
    background: #ecfdf5;
    color: #0d9488;
    border: 1px solid #a7f3d0;
}

.spf-tag-neighborhood {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.spf-tag-service {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.spf-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.spf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
}

.spf-btn:active {
    transform: scale(0.97);
}

.spf-btn-phone {
    background: #0d9488;
    color: #fff;
}

.spf-btn-phone:hover {
    background: #0a7c72;
    color: #fff;
}

.spf-btn-whatsapp {
    background: #f97316;
    color: #fff;
}

.spf-btn-whatsapp:hover {
    background: #ea580c;
    color: #fff;
}

.spf-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* No Results */
.spf-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 16px;
}

/* CTA - Add yourself as provider */
.spf-cta {
    text-align: center;
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.spf-cta p {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 14px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .spf-search-box {
        padding: 20px 16px;
    }

    .spf-filters {
        flex-direction: column;
    }

    .spf-filter-group {
        min-width: 100%;
    }

    .spf-card-actions {
        flex-direction: column;
    }

    .spf-btn {
        justify-content: center;
    }
}
