/**
 * Boundaryline Price Estimator Styles

 */

.bl-estimator-wrapper {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  max-width: 600px;
  margin: 0px !important;
  padding: 20px;
  padding-left: 0px;
  /* background-color: #f5f5f5; */
}

.bl-estimator-container {
  /* background-color: #ffffff; */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Title */
.bl-estimator-title {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 25px 0;
  text-align: left;
}

/* Labels */
.bl-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Panel Height Section */
.bl-panel-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}

.bl-panel-group {
  border-bottom: 1px solid #ececec;
  padding-bottom: 20px;
}

.bl-panel-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bl-panel-height-section {
  margin-bottom: 30px;
}

.bl-height-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bl-estimator-wrapper .bl-height-buttons .bl-height-btn {
  background-color: #e0e0e0 !important;
  color: #333333 !important;
  border: 1px solid #c9c9c9 !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  background-image: none !important;
  box-shadow: none;
}

.bl-estimator-wrapper .bl-height-buttons .bl-height-btn:hover {
  background-color: #d5d5d5 !important;
  color: #111111 !important;
  border-color: #bdbdbd !important;
}

.bl-estimator-wrapper .bl-height-buttons .bl-height-btn:active {
  background-color: #cccccc !important;
  color: #111111 !important;
  border-color: #b0b0b0 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.bl-estimator-wrapper .bl-height-buttons .bl-height-btn.bl-active {
  background-color: #c0c0c0 !important;
  color: #111111 !important;
  border-color: #a8a8a8 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Length Section */
.bl-length-section {
  margin-bottom: 30px;
}

.bl-length-display {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 15px;
}

.bl-length-value {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
}

.bl-length-unit {
  font-size: 16px;
  color: #666666;
}

.bl-slider-container {
  position: relative;
  margin-top: 20px;
}

.bl-length-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.bl-length-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e21e36;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  /* Removed transition for instant visual feedback */
}

.bl-length-slider::-webkit-slider-thumb:hover {
  background: #c01a2e;
  transform: scale(1.1);
}

.bl-length-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e21e36;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bl-length-slider::-moz-range-thumb:hover {
  background: #c01a2e;
  transform: scale(1.1);
}

.bl-slider-hint {
  display: block;
  font-size: 11px;
  color: #999999;
  text-align: right;
  margin-top: 5px;
  font-style: italic;
}

/* Price Section */
.bl-price-section {
  /* background-color: #e21e36;
  color: #ffffff; */
  background-color: #e0e0e0;
  color: #000000;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  text-align: center;
}

.bl-price-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  opacity: 0.95;
}

.bl-price-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

/* Form Section */
.bl-form-section {
  margin-bottom: 30px;
}

.bl-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.bl-estimator-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bl-form-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

.bl-form-input:focus {
  outline: none;
  border-color: #e21e36;
}

.bl-form-input::placeholder {
  color: #999999;
}

.bl-download-btn {
  background-color: #4a4a4a;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 50px;
  height: 44px;
}

.bl-download-btn:hover {
  background-color: #5a5a5a;
}

.bl-download-btn:active {
  transform: scale(0.95);
}

.bl-download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bl-download-btn svg {
  width: 20px;
  height: 20px;
}

.bl-form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}

.bl-form-message.bl-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.bl-form-message.bl-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.bl-form-message.bl-loading {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  display: block;
}

.bl-form-message .bl-loading-dots {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}

.bl-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.4;
  animation: bl-loading-bounce 0.9s infinite ease-in-out;
}

.bl-loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.bl-loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bl-loading-bounce {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Disclaimer */
.bl-disclaimer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eeeeee;
}

.bl-disclaimer p {
  font-size: 12px;
  color: #666666;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

.bl-disclaimer a {
  color: #e21e36;
  text-decoration: none;
}

.bl-disclaimer a:hover {
  text-decoration: underline;
}

/* Loading State */
.bl-estimator-wrapper.bl-loading .bl-price-value {
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .bl-estimator-wrapper {
    padding: 15px;
  }

  .bl-estimator-container {
    padding: 20px;
  }

  .bl-estimator-form {
    flex-direction: column;
  }

  .bl-download-btn {
    width: 100%;
  }

  .bl-height-buttons {
    flex-direction: column;
  }

  .bl-estimator-wrapper .bl-height-buttons .bl-height-btn {
    width: 100%;
  }
}
