/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f7f4f1;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    margin-bottom: 40px;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.flag {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.country-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Filter Controls */
.filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.filter-controls .filter-group:last-child {
    grid-column: 1 / -1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Range Slider Styles */
.range-slider {
    position: relative;
    width: 100%;
    height: 6px;
    margin: 10px 0;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    pointer-events: none;
}

.range-slider input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    transition: all 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.range-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    border: none;
}

.range-slider input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    pointer-events: auto;
}

.range-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 1;
}

.range-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--track-left, 0%);
    width: var(--track-width, 100%);
    height: 6px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}

.range-min {
    z-index: 2;
}

.range-max {
    z-index: 3;
}

/* Slider Group Styles */
.slider-group {
    gap: 16px;
}

.slider-container {
    position: relative;
    padding: 20px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

#validityValue,
#dataValue {
    font-weight: 600;
    color: #ff6b35;
    font-size: 13px;
}

.slider-track-marks {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    pointer-events: none;
}

.slider-track-marks span {
    width: 2px;
    height: 10px;
    background: #ccc;
    font-size: 10px;
    color: #999;
    display: flex;
    align-items: end;
    justify-content: center;
    padding-bottom: 15px;
}

/* Operator Selector */
.operator-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.operator-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.operator-option:hover {
    border-color: #ff6b35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.operator-option.active {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.operator-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.network-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.network-badge.plus {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.feature-icons {
    font-size: 14px;
    line-height: 1;
}

.operator-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.operator-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.operator-desc {
    font-size: 12px;
    color: #666;
}

/* Package Results */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.package-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #ff6b35;
}

.package-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 16px;
}

.operator-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.operator-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.operator-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.package-type {
    font-size: 11px;
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.package-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.package-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.package-features {
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.feature-tag.voice {
    background: #e3f2fd;
    color: #1565c0;
}

.feature-tag.text {
    background: #fff3e0;
    color: #e65100;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
}

.select-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-btn:hover {
    background: #e55a30;
    transform: translateY(-1px);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.no-results p {
    font-size: 16px;
    color: #666;
}

/* Fair usage policy notice */
.fair-usage {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 8px 12px;
    margin-top: 12px;
    border-radius: 4px;
}

.fair-usage-text {
    font-size: 12px;
    color: #663c00;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .country-info h1 {
        font-size: 2rem;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .filter-controls .filter-group:last-child {
        grid-column: 1;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-details {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        flex-direction: column;
    }

    .operator-selector {
        gap: 8px;
    }
    
    .operator-option {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .operator-icon {
        min-width: 50px;
    }
}