/* WordPress Plugin Styles - Clean delivery checker design */

.psf-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.psf-container *,
.psf-container *::before,
.psf-container *::after {
    box-sizing: border-box;
}

/* Search Box */
.psf-container .psf-search-box {
    width: 100%;
    margin-bottom: 20px;
}

.psf-container .psf-search-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
    border: 2px solid #4a9d8e;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.psf-container .psf-search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: none;
    outline: none;
    background: white;
}

.psf-container .psf-search-input:focus {
    outline: none;
}

.psf-container .psf-search-btn {
    padding: 14px 28px;
    background: #3d7a6e;
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.psf-container .psf-search-btn:hover {
    background: #2d5a52;
}

/* Compact mode header */
.psf-container .psf-compact-header {
    margin-bottom: 12px;
}

.psf-container .psf-compact-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Hero Container (for non-compact mode) */
.psf-container .psf-hero-container {
    display: block;
    margin-bottom: 20px;
}

.psf-container .psf-header-content {
    display: none;
}

/* Validation Messages */
.psf-container .psf-validation-message {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.psf-container .psf-validation-message.success {
    background: #d4edda;
    color: #155724;
}

.psf-container .psf-validation-message.error {
    background: #f8d7da;
    color: #721c24;
}

.psf-container .psf-validation-message.warning {
    background: #fff3cd;
    color: #856404;
}

/* Loading */
.psf-container .psf-loading-spinner {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Hide pincode info badge */
.psf-container .psf-pincode-info {
    display: none;
}

/* Section Titles */
.psf-container .psf-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4caf50;
    margin: 0 0 16px 0;
    padding-left: 16px;
    border-left: 4px solid #4caf50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psf-container .psf-section-title i {
    color: #4caf50;
}

/* Service Grid - responsive columns */
.psf-container .psf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 768px) {
    .psf-container .psf-services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
    }
}

/* Service Card */
.psf-container .psf-service-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.psf-container .psf-service-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.psf-container .psf-service-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psf-container .psf-location-item {
    
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}

.psf-container .psf-location-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.psf-container .psf-location-name {
    font-weight: 500;
    font-size: 18px;
    color: #333;
    margin: 0 0 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.psf-container .psf-location-name i {
    color: #e91e63;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.psf-container .psf-location-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.psf-container .psf-location-pincode {
    color: #0277bd;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    background: #e3f2fd;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.psf-container .psf-location-pincode:hover {
    text-decoration: none;
    background: #bbdefb;
}

.psf-container .psf-location-distance {
    font-size: 14px;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

.psf-container .psf-available-tag {
    display: none;
}

.psf-container .psf-hidden-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psf-container .psf-expand-btn {
    background: transparent;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    color: #0277bd;
    font-size: 13px;
    text-align: left;
    transition: color 0.2s;
}

.psf-container .psf-expand-btn:hover {
    color: #01579b;
}

/* No Results */
.psf-container .psf-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.psf-container .psf-no-results i {
    font-size: 40px;
    margin-bottom: 12px;
    color: #ccc;
}

.psf-container .psf-no-results h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 8px 0;
}

.psf-container .psf-no-results p {
    margin: 0;
    font-size: 14px;
}

.psf-container .psf-no-service-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.psf-container .psf-no-service-card i {
    font-size: 36px;
    color: #ccc;
    margin-bottom: 10px;
}

.psf-container .psf-no-service-card p {
    margin: 0;
    color: #666;
}

/* Nearby section title - different color */
#psfNearbyServicesSection .psf-section-title {
    color: #ff9800;
    border-left-color: #ff9800;
}

#psfNearbyServicesSection .psf-section-title i {
    color: #ff9800;
}
