/* Toll Free Number Search Plugin Styles */

#toll-free-search-container {
    font-family: 'PT Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #333333;
}

.tfns-hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.tfns-hero-title {
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 1rem;
    font-weight: 400;
}

.tfns-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.tfns-pricing-preview {
    background: #f8f9fa;
    border: 2px solid #970300;
    color: #333333;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
}

.tfns-pricing-preview h3 {
    margin-bottom: 0.5rem;
    color: #970300;
}

.tfns-price-range {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #970300;
}

.tfns-pricing-note {
    color: #666;
    font-size: 0.9rem;
}

.tfns-recommendation {
    background: #fef7f7;
    border-left: 4px solid #970300;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.tfns-recommendation-title {
    font-weight: 600;
    color: #970300;
    margin-bottom: 0.5rem;
}

.tfns-search-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tfns-search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tfns-search-header h2 {
    margin-bottom: 0.5rem;
}

.tfns-search-type-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tfns-tab {
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.tfns-tab.active {
    background: #970300;
    color: white;
    box-shadow: 0 2px 10px rgba(151, 3, 0, 0.3);
}

.tfns-tab:not(.active):hover {
    background: #f5f5f5;
    border-color: #970300;
}

.tfns-tab-title {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.tfns-tab-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.tfns-search-section {
    text-align: center;
    margin-bottom: 2rem;
}

.tfns-search-section h3 {
    margin-bottom: 0.5rem;
}

.tfns-search-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tfns-prefix-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tfns-prefix-tab {
    padding: 0.8rem 1.2rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid transparent;
    min-width: 60px;
}

.tfns-prefix-tab.active {
    background: #970300;
    color: white;
    box-shadow: 0 2px 10px rgba(151, 3, 0, 0.3);
}

.tfns-prefix-tab:not(.active):hover {
    background: #f5f5f5;
    border-color: #970300;
}

.tfns-search-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tfns-search-input,
.tfns-country-select {
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-width: 200px;
}

.tfns-search-input:focus,
.tfns-country-select:focus {
    outline: none;
    border-color: #970300;
}

.tfns-search-btn {
    padding: 1rem 2rem;
    background: #970300;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tfns-search-btn:hover {
    background: #7a0200;
    transform: translateY(-2px);
}

.tfns-results-container {
    margin-top: 2rem;
}

.tfns-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.tfns-load-more {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #970300;
    border: 1px solid #970300;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tfns-load-more:hover {
    background: #970300;
    color: white;
}

.tfns-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tfns-number-card {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.tfns-number-card:hover {
    border-color: #970300;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(151, 3, 0, 0.1);
}

.tfns-number-card.selected {
    border-color: #970300;
    background: #fef7f7;
    color: #970300;
    font-weight: 900;
}

.tfns-number-display {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tfns-number-card.selected .tfns-number-display {
    color: #970300;
}

.tfns-number-type {
    color: #666;
    font-size: 0.9rem;
}

.tfns-phone-icon {
    font-size: 1.1rem;
}

.tfns-select-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #970300;
    background: white;
    display: none;
}

.tfns-number-card.selected .tfns-select-indicator {
    display: block;
    background: #970300;
}

.tfns-continue-section {
    text-align: center;
    margin-top: 3rem;
}

.tfns-continue-btn {
    background: #970300;
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tfns-continue-btn:hover {
    background: #7a0200;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(151, 3, 0, 0.3);
}

.tfns-reassurance {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.tfns-loading-message,
.tfns-error-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.tfns-error-message {
    color: #970300;
    background: #fef7f7;
    border-radius: 8px;
    border: 1px solid #970300;
    font-style: normal;
}

.tfns-error-message h4 {
    margin-bottom: 1rem;
    color: #970300;
}

.tfns-error-message code {
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    display: inline-block;
    margin: 0.5rem 0;
    word-break: break-all;
    font-size: 0.9rem;
}

/* Responsive Design */
@media(max-width: 768px) {
    #toll-free-search-container {
        padding: 1rem;
    }
    
    .tfns-search-type-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tfns-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .tfns-prefix-tabs {
        gap: 0.25rem;
    }
    
    .tfns-prefix-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-width: 50px;
    }
    
    .tfns-search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tfns-search-input,
    .tfns-country-select {
        max-width: none;
        width: 100%;
        min-width: auto;
    }
    
    .tfns-numbers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .tfns-hero-title {
        font-size: 2rem;
    }
}

@media(max-width: 580px) {
    .tfns-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .tfns-number-card {
        padding: 1rem;
    }
    
    .tfns-number-display {
        font-size: 1.1rem;
    }
    
    .tfns-search-type-tabs {
        padding: 0.3rem;
    }
    
    .tfns-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .tfns-prefix-tabs {
        padding: 0.3rem;
    }
    
    .tfns-prefix-tab {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        min-width: 45px;
    }
}