/* Remove blue border from Pricing menu item in navigation */
.menu-item a[href*="/pricing"],
.menu-link[href*="/pricing"],
.nav-link[href*="/pricing"],
a.menu-link-pricing,
.menu a[href="/pricing"],
.dropdown-menu a[href*="/pricing"],
.submenu a[href*="/pricing"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Pricing Page Styles */
.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hide the default Drupal page title on pricing page */
.path-pricing .page-title,
.path-pricing .block-page-title-block,
.path-pricing #block-instappraisal-clean-pagetitle,
.path-pricing .region-content > h1:first-child,
.path-pricing h1.page-header,
.path-pricing h1:contains("Pricing Plans"),
.path-pricing .region-highlighted h1,
.path-pricing .region-header h1,
.path-pricing article > h1:first-child,
.path-pricing .node__content > h1:first-child,
.path-pricing .main-content > h1:first-child,
.path-pricing .content-region h1:first-child,
.path-pricing .block-system-main h1:first-child {
  display: none !important;
}

/* Also hide any h1 that contains "Pricing" but not "Choose" */
.path-pricing h1:not(.pricing-title) {
  display: none !important;
}

/* Ensure our custom title is visible */
.path-pricing .pricing-title {
  display: block !important;
}

.pricing-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.pricing-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.pricing-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card--featured {
  border-color: #007bff;
  transform: scale(1.05);
}

.pricing-card--featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.pricing-card--current {
  background: #f8f9fa;
}

.pricing-card__header {
  margin-bottom: 30px;
}

.pricing-card__title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 10px;
}

.pricing-card__currency {
  font-size: 1.2rem;
  color: #666;
  margin-right: 5px;
}

.pricing-card__amount {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
}

.pricing-card__period {
  font-size: 1rem;
  color: #666;
  margin-left: 5px;
}

.pricing-card__description {
  color: #666;
  font-size: 0.95rem;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.pricing-card__features li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.pricing-card__features .checkmark {
  color: #28a745;
  margin-right: 10px;
  font-weight: bold;
}

.pricing-card__cta .button {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.button--primary {
  background: #007bff;
  color: white;
  border: none;
}

.button--primary:hover {
  background: #0056b3;
}

.button--secondary {
  background: white;
  color: #007bff;
  border: 2px solid #007bff;
}

.button--secondary:hover {
  background: #007bff;
  color: white;
}

.button--disabled {
  background: #e0e0e0;
  color: #999;
  border: none;
  cursor: not-allowed;
}

/* Usage Counter Block Styles */
.usage-counter-block {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.usage-counter__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.usage-counter__text {
  font-weight: 600;
  color: #333;
}

.usage-counter__count {
  color: #666;
}

.usage-counter__bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.usage-counter__progress {
  height: 100%;
  background: #28a745;
  transition: width 0.3s, background-color 0.3s;
}

.usage-warning .usage-counter__progress {
  background: #ffc107;
}

.usage-exceeded .usage-counter__progress {
  background: #dc3545;
}

.usage-counter__plan {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.plan-label {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.usage-counter__upgrade {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.button--link {
  background: none;
  color: #007bff;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-size: 0.9rem;
}

.button--link:hover {
  color: #0056b3;
}

.button--small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Enterprise/Contact Sales section */
.enterprise-cta {
  text-align: center;
  padding: 40px 20px 50px;
  margin-top: 60px;
  margin-bottom: 80px;
  background: #f8f9fa;
  border-radius: 8px;
}

.enterprise-content {
  max-width: 800px;
  margin: 0 auto;
}

.enterprise-cta h2,
.enterprise-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.enterprise-cta p,
.enterprise-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.enterprise-cta .button,
.enterprise-content .button {
  margin-top: 10px;
  margin-bottom: 0;
  display: inline-block;
  padding: 12px 30px;
}

/* Modal for limit reached */
.limit-reached-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 500px;
  text-align: center;
}

.limit-reached-modal h2 {
  color: #dc3545;
  margin-bottom: 20px;
}

.limit-reached-modal p {
  margin-bottom: 30px;
  color: #666;
}

.limit-reached-modal .button {
  margin: 0 10px;
}