/* ISP Manager Frontend Styles */

/* Coverage Checker Container */
.isp-coverage-checker-container {
    
}

.isp-coverage-checker-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.isp-coverage-checker-container .col-md-7,
.isp-coverage-checker-container .col-md-5 {
    padding: 0 15px;
}

.isp-coverage-checker-container .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.isp-coverage-checker-container .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

/* Map Section */
.isp-map-section {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

@media (min-width: 768px) {
    .isp-map-section {
        padding: 25px;
    }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #BC2027;
    padding-bottom: 10px;
}

/* Location Search Box */
.location-search-box {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    border-color: #BC2027;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 51, 0.15);
}

.search-input-group button {
    padding: 12px 25px;
    background: #BC2027;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-input-group button:hover {
    background: #e64a2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 51, 0.3);
}

.search-input-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.map-help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.map-help-text i {
    color: #BC2027;
    margin-right: 5px;
}

/* Search Results */
.search-results {
    margin-top: 10px;
}

.search-results-list {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-results-list p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.search-result-item {
    padding: 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-item:hover {
    background: #BC2027;
    color: #fff;
    transform: translateX(5px);
}

.search-result-item i {
    color: #BC2027;
    font-size: 16px;
}

.search-result-item:hover i {
    color: #fff;
}

/* Form Section */
.isp-form-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Coverage Status */
#isp-coverage-status {
    margin-bottom: 20px;
}

#isp-coverage-status .alert-success {
    --bs-alert-color: #0e891f;
    --bs-alert-bg: #caf0ce;
    --bs-alert-border-color: #54ce60;
    --bs-alert-link-color: #46c756;
}

.selected-location-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #BC2027;
}

.selected-location-info i {
    color: #BC2027;
    margin-right: 5px;
}

/* Initial Message */
.initial-message {
    padding: 25px;
}

.welcome-icon {
    font-size: 64px;
    color: #BC2027;
    margin-bottom: 20px;
}

.initial-message h4 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.initial-message p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.steps-list li {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
}

.steps-list li i {
    color: #28a745;
    margin-right: 10px;
}

/* Map Styling */
#isp-coverage-map {
    border: 2px solid #e0e0e0;
    margin: 0;
}

.isp-coverage-checker {
    margin: 30px 0;
}

.isp-packages-grid {
    margin: 30px 0;
}

.isp-package-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    background: #fff;
}

.isp-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #BC2027;
}

.isp-package-card.featured {
    border-color: #BC2027;
    border-width: 3px;
    background: linear-gradient(135deg, #fff 0%, #fff5f3 100%);
}

.package-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #BC2027;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.package-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.package-speed {
    font-size: 18px;
    color: #666;
    font-weight: 600;
}

.package-price {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.package-price .amount {
    font-size: 42px;
    font-weight: 800;
    color: #BC2027;
}

.package-price .currency {
    font-size: 20px;
    color: #666;
    margin-left: 5px;
}

.package-price .period {
    font-size: 14px;
    color: #999;
    display: block;
    margin-top: 5px;
}

.package-description {
    color: #666;
    font-size: 14px;
    margin: 15px 0;
    min-height: 40px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.package-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
}

.package-features li i {
    color: #28a745;
    margin-right: 10px;
}

.package-select-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #BC2027;
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}

.package-select-btn:hover {
    background: #e64a2e;
    transform: scale(1.05);
    color: #fff;
}

.isp-request-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.isp-request-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.isp-request-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.isp-request-form .form-control:focus {
    border-color: #BC2027;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 51, 0.15);
}

.isp-request-form .btn-primary {
    background: #BC2027;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.isp-request-form .btn-primary:hover {
    background: #e64a2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 51, 0.3);
}

.text-danger {
    color: #dc3545;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .isp-coverage-checker-container .col-md-7,
    .isp-coverage-checker-container .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .isp-map-section {
        margin-bottom: 20px;
    }
    
    .isp-form-section {
        position: static;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group button {
        width: 100%;
    }
    
    #isp-coverage-map {
        height: 400px !important;
    }
    
    .isp-package-card {
        margin-bottom: 20px;
    }
    
    .package-price .amount {
        font-size: 36px;
    }
    
    .isp-request-form {
        padding: 20px;
    }
}
