/* Find Plans Page Styles */
.find-plans-main {
    min-height: calc(100vh - 4rem);
    background-color: #f9fafb;
    padding: 3rem 0;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 36rem;
    margin: 0 auto;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 6rem;
}

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

.filters-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.filters-header i {
    color: #6b7280;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Results Area */
.results-area {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.results-count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Plans Grid */
.plans-grid {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Plan Card */
.plan-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.plan-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.plan-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.plan-provider {
    color: #6b7280;
    font-size: 0.875rem;
}

.plan-price {
    text-align: right;
}

.plan-premium {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.plan-period {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Plan Details Grid */
.plan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.plan-detail {
    text-align: center;
}

.plan-detail-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.plan-detail-value {
    font-weight: 600;
    color: #111827;
}

/* Coverage Details */
.coverage-details {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.coverage-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.coverage-item {
    font-size: 0.875rem;
    color: #374151;
}

.coverage-item strong {
    color: #1f2937;
}

/* Plan Features */
.plan-features {
    margin-bottom: 1rem;
}

.features-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.feature-check {
    color: #10b981;
    font-size: 1rem;
}

/* Plan Actions */
.plan-actions {
    display: flex;
    justify-content: flex-end;
}

.view-plan-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-plan-btn:hover {
    background-color: #1d4ed8;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Terms Modal */
.terms-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.terms-content {
    padding: 1.5rem;
}

.terms-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #111827;
}

.terms-content p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.terms-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.terms-summary {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.terms-summary h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.terms-summary ul {
    padding-left: 1.5rem;
}

.terms-summary li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.terms-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .find-plans-main {
        padding: 1.5rem 0;
    }
    
    .search-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.875rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .plan-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .plan-price {
        text-align: left;
    }
    
    .plan-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-section,
    .filters-sidebar,
    .results-area {
        margin: 0 -0.5rem;
        border-radius: 0;
    }
    
    .plan-card {
        padding: 1rem;
    }
    
    .plan-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .contact-option {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .icon-container {
        margin-bottom: 0;
    }
    
    .address-line {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}