/* Paver Patio Estimator Styles */
:root {
  --paver-primary: #0B539D;
  --paver-accent: #059669;
  --paver-bg: #f9fafb;
  --paver-text: #111827;
}

.paver-estimator-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: var(--paver-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.paver-estimator-header {
  text-align: center;
  margin-bottom: 3rem;
}

.paver-estimator-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--paver-primary);
  margin-bottom: 1.5rem;
}

.paver-estimator-subtitle {
  font-size: 1.25rem;
  color: var(--paver-text);
  opacity: 0.8;
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.paver-estimator-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.section-subtitle {
  color: var(--paver-text);
  opacity: 0.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--paver-text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 1.25rem;
}

/* Patio Size Selection */
.patio-sizes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.option-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.option-image:hover img {
  transform: scale(1.05);
}

.has-gallery {
  cursor: pointer;
  position: relative;
}





.patio-size-option {
  position: relative;
}

.patio-size-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.patio-size-option label {
  display: block;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.patio-size-option label:hover {
  border-color: var(--paver-primary);
  box-shadow: 0 4px 12px rgba(11, 83, 157, 0.15);
}

.patio-size-option input[type="radio"]:checked + label {
  border-color: var(--paver-primary);
  background: rgba(11, 83, 157, 0.05);
}

.patio-size-option h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paver-text);
  margin: 0 0 0.5rem 0;
}

.patio-size-option .size-description {
  color: var(--paver-text);
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
}

.patio-size-option .price {
  color: var(--paver-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

/* Add-ons Grid - Force override any theme CSS */
.add-ons-grid {
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: repeat(3, 1fr) !important;
  width: 100% !important;
}

/* Force column specifications with !important */
.add-ons-grid[data-columns="1"] {
  grid-template-columns: 1fr !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}

.add-ons-grid[data-columns="2"] {
  grid-template-columns: repeat(2, 1fr) !important;
}

.add-ons-grid[data-columns="3"] {
  grid-template-columns: repeat(3, 1fr) !important;
}

.add-ons-grid[data-columns="4"] {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
  .add-ons-grid[data-columns="4"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .add-ons-grid[data-columns="3"],
  .add-ons-grid[data-columns="4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .add-ons-grid[data-columns="2"],
  .add-ons-grid[data-columns="3"],
  .add-ons-grid[data-columns="4"] {
    grid-template-columns: 1fr !important;
  }
}

.add-on-option {
  position: relative;
}

.add-on-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.add-on-option label {
  display: block;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  min-height: 200px;
}

.add-on-option label:hover {
  border-color: var(--paver-accent);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.add-on-option input[type="checkbox"]:checked + label {
  border-color: var(--paver-accent);
  background: rgba(5, 150, 105, 0.05);
}

.add-on-option h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--paver-text);
  margin: 0 0 0.5rem 0;
}

.add-on-option .description {
  color: var(--paver-text);
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
}

.add-on-option .price {
  color: var(--paver-accent);
  font-weight: 600;
  margin: 0;
}

/* Calculate Button */
.text-center {
  text-align: center;
}

.calculate-btn {
  background: var(--paver-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 83, 157, 0.3);
}

.calculate-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 83, 157, 0.4);
}

.calculate-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.calculate-note {
  color: var(--paver-text);
  opacity: 0.6;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.calculate-btn span {
  margin-right: 0.5rem;
}

/* Results Section */
.estimate-display {
  space-y: 1.5rem;
}

.total-cost {
  background: linear-gradient(135deg, var(--paver-primary), #1e40af);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.estimate-label {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 0.5rem 0;
}

.estimate-amount {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.estimate-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0.5rem 0 0 0;
}

.cost-breakdown {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.breakdown-item:last-child {
  border-bottom: none;
}

.whats-included {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.whats-included h4 {
  font-weight: 600;
  color: var(--paver-text);
  margin: 0 0 1rem 0;
}

.whats-included ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.whats-included li {
  padding: 0.25rem 0;
  color: var(--paver-text);
  opacity: 0.8;
}

.whats-included li:before {
  content: "•";
  color: var(--paver-accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.consultation-cta {
  margin-top: 1.5rem;
}

.consultation-btn {
  background: var(--paver-accent);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.consultation-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
  color: white;
  text-decoration: none;
}

.consultation-btn span {
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .paver-estimator-container {
    padding: 1rem;
  }
  
  .paver-estimator-title {
    font-size: 2rem;
  }
  
  .paver-estimator-subtitle {
    font-size: 1.1rem;
  }
  
  .paver-estimator-section {
    padding: 1.5rem;
  }
  
  .patio-sizes {
    grid-template-columns: 1fr;
  }
  
  .add-ons-grid {
    grid-template-columns: 1fr;
  }
  
  .estimate-amount {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .paver-estimator-container {
    padding: 0.5rem;
  }
  
  .paver-estimator-section {
    padding: 1rem;
  }
  
  .patio-size-option label,
  .add-on-option label {
    padding: 1rem;
  }
  
  .calculate-btn,
  .consultation-btn {
    width: 100%;
    padding: 1rem;
  }
}