/* Calculator Styles for Haitariovi.fi */

.calculator-hero {
  background-color: var(--light-gray);
  padding: 60px 0 30px;
}

.calculator-section {
  padding: 30px 0 60px;
  background-color: var(--white);
}

.calculator-container {
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calculator-step {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.calculator-step h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

/* Product Selection */
.product-selection {
  margin-bottom: 20px;
}

.product-option {
  background-color: var(--white);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-option.active {
  border: 2px solid var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-option img {
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.product-option h4 {
  font-size: 18px;
  margin-bottom: 0;
}

/* Product Type Selection */
.product-type-option {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-type-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-type-option.active {
  border: 2px solid var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-type-option h5 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-type-option p {
  font-size: 14px;
  margin-bottom: 0;
  color: #666;
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
  color: var(--primary-color);
}

.form-control {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px;
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Color Options */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.color-option[data-color="black"] {
  background-color: #1a1a1a; /* RAL 9005 */
}

.color-option[data-color="white"] {
  background-color: #f1f1f1; /* RAL 9016 */
  border: 1px solid #ddd;
}

.color-option[data-color="dark_grey"] {
  background-color: #474a51; /* RAL 7024 */
}

.color-option[data-color="brown"] {
  background-color: #44362e; /* RAL 8017 */
}

.color-option[data-color="light_grey"] {
  background-color: #d7d7d7; /* RAL 7035 */
}

/* Price Summary */
.price-summary {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  position: sticky;
  top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.summary-list {
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}

.summary-list li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.summary-list li:last-child {
  border-bottom: none;
}

.summary-total {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
}

.price-note {
  text-align: center;
  font-style: italic;
  color: #666;
}

.summary-actions {
  margin-top: 20px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Animation for price changes */
@keyframes highlight {
  0% {
    background-color: rgba(0, 102, 204, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.price-changed {
  animation: highlight 1.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .price-summary {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .calculator-container {
    padding: 20px;
  }
  
  .product-option img {
    height: 120px;
  }
  
  .product-option h4 {
    font-size: 16px;
  }
  
  .product-type-option {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .product-type-option h5 {
    font-size: 14px;
  }
  
  .summary-title {
    font-size: 18px;
  }
  
  .summary-list li {
    font-size: 14px;
  }
  
  .summary-total {
    font-size: 16px;
  }
}
