* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #000 0%, #252433 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  padding: 40px;
  text-align: center;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.main-content {
  padding: 40px;
}

.search-section {
  margin-bottom: 30px;
}

.search-section h2 {
  margin-bottom: 20px;
  color: #333;
}

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

#address {
  flex: 1;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

#address:focus {
  outline: none;
  border-color: #007bff;
}

.btn {
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

#result {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  min-height: 60px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  padding: 20px 30px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.3em;
  line-height: 1;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 30px;
}

.address-section {
  margin-bottom: 30px;
}

.address-section h3 {
  margin-bottom: 15px;
  color: #333;
}

.address-input-group {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

#modal-address {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

#modal-address:focus {
  outline: none;
  border-color: #007bff;
}

.map-container {
  margin: 20px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

#map {
  height: 300px;
  width: 100%;
}

/* Provider Results Styles */
.provider-selector {
  margin-top: 30px;
}

.provider-selector h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.4em;
}

.provider-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.provider-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.provider-tab:hover {
  border-color: #007bff;
  background: #f8f9fa;
  transform: translateY(-2px);
}

.provider-tab.active {
  border-color: #007bff;
  background: #007bff;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.provider-tab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.plan-card {
  position: relative;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  background: white;
  transition: all 0.3s ease;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.plan-card:hover::before {
  transform: scaleX(1);
}

.plan-card.popular {
  border-color: #007bff;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
  transform: scale(1.05);
}

.plan-card.popular::before {
  transform: scaleX(1);
  background: linear-gradient(45deg, #28a745, #20c997);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.plan-card h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.3em;
  font-weight: 600;
}

.plan-speed {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 20px;
  padding: 8px 15px;
  background: #f8f9fa;
  border-radius: 20px;
  display: inline-block;
}

.plan-price {
  margin: 20px 0;
}

.plan-price .price {
  font-size: 2.2em;
  font-weight: bold;
  color: #007bff;
  display: block;
}

.plan-price .period {
  color: #666;
  font-size: 0.9em;
  margin-top: 5px;
}

.plan-description {
  color: #777;
  margin: 20px 0;
  font-size: 0.95em;
  line-height: 1.4;
}

.plan-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-button:hover {
  background: linear-gradient(45deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.plan-card.popular .plan-button {
  background: linear-gradient(45deg, #28a745, #20c997);
}

.plan-card.popular .plan-button:hover {
  background: linear-gradient(45deg, #1e7e34, #17a2b8);
}

/* Loading and status styles */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-coverage {
  text-align: center;
  padding: 40px;
  color: #dc3545;
}

/* New UI/UX Styles */
.back-button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  color: white;
}

.back-button:hover {
  background: #545b62;
  transform: translateY(-2px);
}

.modal-body-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .modal-body {
    padding: 20px;
  }

  .search-input-group,
  .address-input-group {
    flex-direction: column;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .plan-card.popular {
    transform: none;
  }

  .provider-tabs {
    justify-content: center;
  }

  .provider-tab {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 2em;
  }

  .main-content {
    padding: 20px;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 15px;
  }
}
.modal-loading-overlay {
  position: absolute;
  z-index: 2000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.modal-loading-overlay.hidden {
  display: none;
}
