/* Frontend Styles for MLS Package Comparison */

.mls-pc-comparison-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Selectors Section */
.mls-pc-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mls-pc-selector {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.mls-pc-selector.active {
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.mls-pc-selector h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.mls-pc-selector-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mls-pc-field {
    display: flex;
    flex-direction: column;
}

.mls-pc-field label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.mls-pc-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.mls-pc-field select:hover:not(:disabled) {
    border-color: #0073aa;
}

.mls-pc-field select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.mls-pc-clear-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.mls-pc-clear-btn:hover {
    background: #a02020;
}

.mls-pc-loading {
    text-align: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

/* Comparison Table Section */
.mls-pc-comparison-table-wrapper {
    margin-top: 30px;
}

.mls-pc-comparison-table-wrapper h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.mls-pc-comparison-table {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.mls-pc-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.mls-pc-comparison-table th,
.mls-pc-comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mls-pc-comparison-table th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mls-pc-comparison-table tbody tr:hover {
    background: #f9f9f9;
}

.mls-pc-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.mls-pc-comparison-table .service-name {
    font-weight: 500;
    color: #333;
}

.mls-pc-comparison-table .service-check {
    text-align: center;
    font-size: 20px;
}

.mls-pc-comparison-table .service-included {
    color: #46b450;
}

.mls-pc-comparison-table .service-not-included {
    color: #dc3232;
}

.mls-pc-package-header {
    background: #f0f0f0;
    font-weight: bold;
}

.mls-pc-provider-name {
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.mls-pc-package-name {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.mls-pc-package-name a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.mls-pc-package-name a:hover {
    color: #fff;
    text-decoration: underline;
}

.mls-pc-pricing {
    font-size: 14px;
    color: #fff;
}

.mls-pc-pricing strong {
    color: #fff;
}

/* Error Messages */
.mls-pc-error {
    background: #ffebe8;
    border: 1px solid #dc3232;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #dc3232;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mls-pc-selectors {
        grid-template-columns: 1fr;
    }
    
    .mls-pc-comparison-table {
        font-size: 14px;
    }
    
    .mls-pc-comparison-table th,
    .mls-pc-comparison-table td {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .mls-pc-comparison-wrapper {
        padding: 10px;
    }
    
    .mls-pc-selector {
        padding: 15px;
    }
    
    .mls-pc-comparison-table {
        font-size: 12px;
    }
    
    .mls-pc-comparison-table th,
    .mls-pc-comparison-table td {
        padding: 8px;
    }
}
