/**
 * Modual Configurator - Frontend Styles
 *
 * Conversion-optimized funnel design with path selection.
 *
 * @package Modual_Configurator
 */

/* ================================
   CSS VARIABLES
================================ */
#mc-configurator-wrapper {
  --mc-primary: #fbba00;
  --mc-secondary: #2e5efc;
  --mc-dark: #171717;
  --mc-dark-grey: #666666;
  --mc-grey: #a8a8a8;
  --mc-light-grey: #f0f0f0;
  --mc-light: #f8f8f8;
  --mc-white: #ffffff;
  --mc-error: #ff6b35;
  --mc-success: #22c55e;

  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

#mc-configurator-wrapper *,
#mc-configurator-wrapper *::before,
#mc-configurator-wrapper *::after {
  box-sizing: border-box;
}

/* ================================
   TYPOGRAPHY
================================ */
#mc-configurator-wrapper h1 {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--mc-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

#mc-configurator-wrapper h2 {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mc-dark);
  margin-bottom: 0.75rem;
}

#mc-configurator-wrapper h5 {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mc-dark);
  margin-bottom: 0;
}

#mc-configurator-wrapper p {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--mc-dark-grey);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

#mc-configurator-wrapper small {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--mc-dark-grey);
}

.mc-no-margin { margin: 0 !important; }
.mc-blue { color: var(--mc-secondary); }
.mc-yellow { color: var(--mc-primary); }
.mc-hidden { display: none !important; }

/* ================================
   LAYOUT
================================ */
#mc-configurator-wrapper main {
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
  border-radius: 16px;
  background: var(--mc-white);
}

/* ================================
   TRUST BAR
================================ */
.mc-trust-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--mc-light);
  border-radius: 12px 12px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mc-dark-grey);
}

/* ================================
   PROGRESS BAR
================================ */
.mc-progress-bar {
  position: relative;
  height: 6px;
  background: var(--mc-light-grey);
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: visible;
}

.mc-progress-fill {
  height: 100%;
  background: var(--mc-secondary);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.mc-progress-text {
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 0.75rem;
  color: var(--mc-grey);
  font-weight: 500;
}

/* ================================
   SCREENS
================================ */
.mc-screen {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
}

.mc-screen.active {
  display: block;
  animation: mcFadeIn 0.3s ease;
}

.mc-screen-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ================================
   PATH CARDS (Screen 1)
================================ */
.mc-path-cards {
  display: flex;
  gap: 1rem;
}

.mc-path-card {
  flex: 1;
  border: 2px solid var(--mc-light-grey);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--mc-white);
  text-align: center;
}

.mc-path-card:hover {
  border-color: var(--mc-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mc-path-card.selected {
  border-color: var(--mc-secondary);
  background: rgba(46, 94, 252, 0.03);
}

.mc-path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--mc-secondary);
}

.mc-path-plus {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--mc-grey);
}

.mc-path-card h2 {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.mc-path-card p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.mc-path-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.mc-path-features li {
  font-size: 0.85rem;
  color: var(--mc-dark);
  padding: 0.25rem 0;
  font-weight: 500;
}

.mc-path-features li::before {
  content: "✓ ";
  color: var(--mc-success);
  font-weight: 700;
}

/* ================================
   INPUT GROUPS
================================ */
.mc-input-group {
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
}

.mc-input-group input[type="text"],
.mc-input-group input[type="email"],
.mc-input-group input[type="tel"],
.mc-input-group input[type="number"],
.mc-input-group select,
.mc-input-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--mc-light-grey);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--mc-white);
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.mc-input-group input:focus,
.mc-input-group select:focus,
.mc-input-group textarea:focus {
  outline: none;
  border-color: var(--mc-secondary);
}

.mc-input-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.mc-input-row .mc-input-group {
  flex: 1;
}

/* ================================
   RADIO OPTIONS
================================ */
.mc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.mc-radio-group.mc-radio-inline {
  flex-direction: row;
}

.mc-radio-option {
  display: flex;
  align-items: center;
  border: 2px solid var(--mc-light-grey);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: var(--mc-white);
  width: 100%;
  padding: 1rem;
}

.mc-radio-option:has(input[type="radio"]:checked) {
  border-color: var(--mc-secondary);
}

.mc-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
  left: 0;
  top: 0;
}

.mc-radio-option label {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
}

.mc-radio-option::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--mc-light-grey);
  border-radius: 50%;
  background: var(--mc-white);
  flex-shrink: 0;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.mc-radio-option:has(input[type="radio"]:checked)::before {
  border-color: var(--mc-secondary);
  background: var(--mc-secondary);
}

.mc-label-content {
  flex: 1;
  pointer-events: none;
}

/* ================================
   REDIRECT NOTICE
================================ */
.mc-redirect-notice {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #eff6ff;
  border: 2px solid var(--mc-secondary);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  animation: mcFadeIn 0.3s ease;
}

.mc-redirect-notice .mc-notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mc-redirect-notice p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.mc-redirect-notice p:last-child {
  margin-bottom: 0;
}

/* ================================
   SLIDER
================================ */
.mc-slider-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mc-slider-group input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--mc-light-grey);
  border-radius: 4px;
  outline: none;
  border: none;
  padding: 0;
}

.mc-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mc-secondary);
  cursor: pointer;
  border: 3px solid var(--mc-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mc-slider-group input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mc-secondary);
  cursor: pointer;
  border: 3px solid var(--mc-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mc-slider-value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 100px;
}

.mc-slider-value input[type="number"] {
  width: 70px;
  padding: 0.5rem;
  border: 2px solid var(--mc-light-grey);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.mc-slider-value input[type="number"]:focus {
  outline: none;
  border-color: var(--mc-secondary);
}

.mc-slider-value span {
  font-size: 0.85rem;
  color: var(--mc-dark-grey);
  font-weight: 500;
}

/* ================================
   STEPPER
================================ */
.mc-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}

.mc-stepper-btn {
  width: 52px;
  height: 52px;
  border: 2px solid var(--mc-light-grey);
  background: var(--mc-light);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--mc-dark);
  font-family: "Montserrat", sans-serif;
}

.mc-stepper-minus { border-radius: 10px 0 0 10px; }
.mc-stepper-plus { border-radius: 0 10px 10px 0; }

.mc-stepper-btn:hover {
  background: var(--mc-secondary);
  border-color: var(--mc-secondary);
  color: var(--mc-white);
}

.mc-stepper input[type="number"] {
  width: 70px;
  height: 52px;
  border: 2px solid var(--mc-light-grey);
  border-left: none;
  border-right: none;
  border-radius: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  -moz-appearance: textfield;
  padding: 0;
}

.mc-stepper input[type="number"]::-webkit-inner-spin-button,
.mc-stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ================================
   CONSUMER OPTIONS
================================ */
.mc-consumer-option {
  border: 2px solid var(--mc-light-grey);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  background: var(--mc-white);
  position: relative;
}

.mc-consumer-option.active {
  border-color: var(--mc-secondary);
}

.mc-consumer-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  width: 100%;
  position: relative;
}

.mc-consumer-header::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--mc-light-grey);
  border-radius: 4px;
  background: var(--mc-white);
  flex-shrink: 0;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.mc-consumer-option.active .mc-consumer-header::before {
  border-color: var(--mc-secondary);
  background: var(--mc-secondary);
}

.mc-consumer-option.active .mc-consumer-header::after {
  content: "";
  position: absolute;
  left: 1.45rem;
  top: 47%;
  width: 6px;
  height: 10px;
  border: solid var(--mc-white);
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
}

.mc-consumer-header input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
  left: 0;
  top: 0;
}

.mc-consumer-input {
  padding: 0 1rem 1rem 1rem;
  display: none;
}

.mc-consumer-input.show {
  display: block;
}

/* ================================
   RECOMMENDATION CARD (Screen 4)
================================ */
.mc-recommendation-card {
  background: var(--mc-light);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mc-rec-product {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mc-rec-product-info {
  flex: 1;
}

.mc-rec-product-info h2 {
  color: var(--mc-secondary);
  font-size: 1.3rem;
}

.mc-rec-product-info p {
  color: var(--mc-dark-grey);
  font-size: 0.9rem;
}

.mc-rec-product-image img {
  max-width: 120px;
  max-height: 160px;
  object-fit: contain;
}

/* Metrics */
.mc-rec-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mc-rec-metric {
  background: var(--mc-white);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.mc-rec-metric small {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.mc-rec-savings {
  text-align: center;
  border: 2px solid var(--mc-primary);
}

/* Metric header with info icon */
.mc-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mc-metric-header small {
  margin-bottom: 0;
}

.mc-metric-header-center {
  justify-content: center;
  gap: 0.35rem;
}

.mc-info-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--mc-grey);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mc-info-btn:hover {
  color: var(--mc-secondary);
}

.mc-info-tooltip {
  background: var(--mc-white);
  border: 1px solid var(--mc-light-grey);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: mcFadeIn 0.2s ease;
}

.mc-info-tooltip p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--mc-dark-grey);
  margin: 0 0 0.5rem 0;
}

.mc-info-tooltip p:last-child {
  margin-bottom: 0;
}

.mc-info-tooltip strong {
  color: var(--mc-dark);
  font-weight: 600;
}

.mc-info-disclaimer {
  font-size: 0.75rem !important;
  font-style: italic;
  color: var(--mc-grey) !important;
  border-top: 1px solid var(--mc-light-grey);
  padding-top: 0.5rem;
  margin-top: 0.5rem !important;
}

 .mc-metrics-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 0.75rem 1rem;
 }

 .mc-metrics-warning small {
  margin: 0;
  color: var(--mc-dark-grey);
  font-weight: 500;
 }

/* Bar comparison */
.mc-bar-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mc-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mc-bar-label {
  font-size: 0.8rem;
  color: var(--mc-dark-grey);
  min-width: 55px;
  font-weight: 500;
}

.mc-bar-track {
  flex: 1;
  height: 24px;
  background: var(--mc-light-grey);
  border-radius: 12px;
  overflow: hidden;
}

.mc-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 1s ease;
}

.mc-bar-before {
  background: var(--mc-grey);
}

.mc-bar-after {
  background: var(--mc-success);
}

.mc-bar-value {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 45px;
  text-align: right;
  color: var(--mc-dark);
}

/* Partner pricing */
.mc-partner-pricing {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mc-pricing-option {
  flex: 1;
  background: var(--mc-white);
  border: 2px solid var(--mc-light-grey);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  position: relative;
}

.mc-pricing-option h5 {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.mc-pricing-option p {
  font-size: 0.9rem;
  color: var(--mc-dark);
}

.mc-pricing-option small {
  font-size: 0.75rem;
}

.mc-pricing-popular {
  border-color: var(--mc-secondary);
}

.mc-pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mc-secondary);
  color: var(--mc-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Deal banner */
.mc-deal-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fef9e7;
  border: 2px solid var(--mc-primary);
  border-radius: 12px;
}

.mc-deal-icon {
  font-size: 1.5rem;
}

.mc-deal-banner strong {
  display: block;
  color: var(--mc-dark);
  font-size: 0.95rem;
}

.mc-deal-banner small {
  color: var(--mc-dark-grey);
  font-size: 0.8rem;
}

/* ================================
   PARTNER INFO SCREEN
================================ */
.mc-partner-info-screen {
  display: none;
  animation: mcFadeIn 0.3s ease;
}

.mc-partner-info-card {
  background: transparent;
  padding: 0;
  text-align: center;
  max-width: 100%;
  margin: 0;
}

.mc-partner-info-logo {
  max-height: 48px;
  margin-bottom: 1.5rem;
}

.mc-partner-info-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--mc-dark);
}

.mc-partner-info-desc {
  font-size: 0.95rem;
  color: var(--mc-dark-grey);
  line-height: 1.6;
  margin: 0 0 1rem;
  text-align: center;
}

.mc-partner-info-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.mc-partner-info-features li {
  font-size: 0.95rem;
  color: var(--mc-dark);
  font-weight: 500;
}

.mc-partner-info-features li::before {
  content: "✓ ";
  color: var(--mc-secondary);
  font-weight: 700;
}

.mc-partner-info-cta,
.mc-partner-info-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  background: var(--mc-secondary);
  color: var(--mc-white);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-bottom: 0.75rem;
}

.mc-partner-info-cta:hover,
.mc-partner-info-continue:hover {
  background: #2550e0;
  transform: translateY(-1px);
}

.mc-partner-info-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  color: var(--mc-dark-grey);
  border: 2px solid var(--mc-light-grey);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mc-partner-info-back:hover {
  border-color: var(--mc-dark-grey);
  color: var(--mc-dark);
}

/* ================================
   CONTACT SECTION (Screen 4)
================================ */
.mc-contact-section {
  margin-top: 0;
}

.mc-contact-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.mc-contact-section .mc-input-group {
  margin-bottom: 1rem;
}

.mc-contact-section input[type="text"],
.mc-contact-section input[type="email"],
.mc-contact-section input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--mc-light-grey);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--mc-white);
  font-family: "Montserrat", sans-serif;
}

.mc-contact-section input:focus {
  outline: none;
  border-color: var(--mc-secondary);
}

.mc-partner-hint {
  text-align: center;
  padding: 0.75rem;
  background: var(--mc-light);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.mc-partner-hint small {
  color: var(--mc-secondary);
  font-weight: 500;
}

/* ================================
   CONSENT OPTIONS
================================ */
.mc-consent-option {
  display: flex;
  align-items: center;
  border: 2px solid var(--mc-light-grey);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
  background: var(--mc-white);
  position: relative;
  cursor: pointer;
}

.mc-consent-option:has(input[type="checkbox"]:checked) {
  border-color: var(--mc-secondary);
}

.mc-consent-option::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--mc-light-grey);
  border-radius: 4px;
  background: var(--mc-white);
  flex-shrink: 0;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.mc-consent-option:has(input[type="checkbox"]:checked)::before {
  border-color: var(--mc-secondary);
  background: var(--mc-secondary);
}

.mc-consent-option:has(input[type="checkbox"]:checked)::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 48%;
  width: 6px;
  height: 10px;
  border: solid var(--mc-white);
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
}

.mc-consent-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
  left: 0;
  top: 0;
}

.mc-consent-option a {
  color: var(--mc-secondary);
  text-decoration: underline;
  position: relative;
  z-index: 3;
}

/* ================================
   CUSTOM DROPDOWN (Inverter)
================================ */
.mc-custom-dropdown {
  position: relative;
  width: 100%;
}

.mc-dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border: 2px solid var(--mc-light-grey);
  border-radius: 10px;
  background: var(--mc-white);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
}

.mc-dropdown-selected.active {
  border-color: var(--mc-secondary);
}

.mc-selected-text {
  flex: 1;
  font-weight: 600;
  color: var(--mc-dark);
  line-height: 1.4;
  font-size: 0.95rem;
}

.mc-selected-logo {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
  min-width: 60px;
  height: 30px;
  justify-content: center;
}

.mc-selected-logo img {
  height: 30px;
  width: 60px;
  object-fit: contain;
  opacity: 0.7;
}

.mc-dropdown-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.mc-dropdown-selected.active .mc-dropdown-arrow {
  transform: rotate(180deg);
}

.mc-dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mc-white);
  border: 2px solid var(--mc-light-grey);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 1000;
}

.mc-dropdown-options.active {
  max-height: 400px;
  opacity: 1;
  overflow-y: auto;
}

.mc-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--mc-light-grey);
  min-height: 56px;
}

.mc-dropdown-option:last-child {
  border-bottom: none;
}

.mc-option-text {
  flex: 1;
  font-weight: 500;
  color: var(--mc-dark);
  line-height: 1.4;
  font-size: 0.9rem;
}

.mc-option-logo {
  height: 30px;
  width: 60px;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  margin-left: 0.75rem;
}

.mc-dropdown-option[data-value="not-yet-determined"] {
  display: none;
}

/* ================================
   INVERTER OTHER INPUT
================================ */
.mc-inverter-input {
  padding: 0.75rem 0 0 0;
  display: none;
  width: 100%;
}

.mc-inverter-input.show {
  display: block;
}

.mc-inverter-input input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--mc-light-grey);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.mc-inverter-input input:focus {
  outline: none;
  border-color: var(--mc-secondary);
}

/* ================================
   FORM NAVIGATION
================================ */
.mc-form-navigation {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

/* ================================
   BUTTONS
================================ */
.mc-primary-btn {
  background: var(--mc-secondary);
  color: var(--mc-white);
  border: none;
  padding: 18px 36px;
  border-radius: 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  width: 100%;
}

.mc-secondary-btn {
  background: transparent;
  border: 2px solid var(--mc-light-grey);
  color: var(--mc-dark-grey);
  padding: 16px 24px;
  border-radius: 32px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
}

.mc-primary-btn span,
.mc-secondary-btn span {
  pointer-events: none;
}

/* ================================
   ERROR HANDLING
================================ */
.mc-input-group.has-error input,
.mc-input-group.has-error select,
.mc-input-group.has-error textarea {
  border-color: var(--mc-error);
}

.mc-custom-dropdown.has-error .mc-dropdown-selected {
  border-color: var(--mc-error);
}

.mc-error-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mc-error);
  color: var(--mc-white);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1000;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: mcFadeIn 0.3s ease;
}

.mc-error-popup::before {
  content: "⚠";
  font-size: 14px;
}

/* ================================
   SUCCESS PAGE
================================ */
#mc-success-page {
  text-align: center;
  padding: 2rem;
}

.mc-success-container {
  max-width: 500px;
  margin: 0 auto;
  animation: mcSlideUp 0.6s ease-out;
}

.mc-success-icon {
  margin: 1rem 0 2rem;
}

.mc-checkmark {
  width: 80px;
  height: 80px;
  stroke-width: 3;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.mc-checkmark.animate {
  animation: mcFill 0.4s ease-in-out 0.4s forwards, mcScale 0.3s ease-in-out 0.9s both;
}

.mc-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--mc-white);
}

.mc-checkmark-check.animate {
  animation: mcStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.mc-success-steps {
  text-align: left;
  margin-top: 2rem;
}

.mc-success-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--mc-dark-grey);
  border-bottom: 1px solid var(--mc-light-grey);
}

.mc-success-step:last-child {
  border-bottom: none;
}

.mc-success-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mc-secondary);
  color: var(--mc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes mcSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mcStroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes mcFill {
  100% { box-shadow: inset 0px 0px 0px 40px var(--mc-primary); }
}

@keyframes mcScale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes mcFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mcFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-5px); }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 640px) {
  #mc-configurator-wrapper h1 { font-size: 1.5rem; }
  #mc-configurator-wrapper h2 { font-size: 1.1rem; }

  .mc-trust-bar { gap: 0.75rem; font-size: 0.7rem; }

  .mc-path-cards { flex-direction: column; }
  .mc-path-card { padding: 1.25rem; }

  .mc-input-row { flex-direction: column; gap: 0; }

  .mc-slider-group { flex-wrap: wrap; }
  .mc-slider-group input[type="range"] { width: 100%; flex: none; }

  .mc-partner-pricing { flex-direction: column; }

  .mc-rec-product { flex-direction: column; text-align: center; }
  .mc-rec-product-info h2 { text-align: center; }

  .mc-form-navigation {
    flex-direction: column;
    align-items: stretch;
  }
  .mc-form-navigation button { width: 100%; }

  .mc-primary-btn { padding: 16px 24px; font-size: 1rem; }
  .mc-secondary-btn { padding: 14px 20px; font-size: 0.9rem; }
}

/* ================================
   HOVER STATES
================================ */
@media (hover: hover) {
  .mc-path-card:hover { border-color: var(--mc-primary); }
  .mc-radio-option:hover { border-color: var(--mc-primary); }
  .mc-radio-option:hover::before { border-color: var(--mc-primary); }
  .mc-dropdown-selected:hover { border-color: var(--mc-primary); }
  .mc-dropdown-option:hover { background-color: var(--mc-light-grey); }
  .mc-dropdown-option:hover .mc-option-logo { opacity: 1; }
  .mc-consumer-option:hover { border-color: var(--mc-primary); }
  .mc-consumer-option:hover .mc-consumer-header::before { border-color: var(--mc-primary); }
  .mc-consent-option:hover { border-color: var(--mc-primary); }
  .mc-consent-option:hover::before { border-color: var(--mc-primary); }
  .mc-primary-btn:hover { background: var(--mc-dark); }
  .mc-secondary-btn:hover { border-color: var(--mc-dark); color: var(--mc-dark); }
  .mc-stepper-btn:hover { background: var(--mc-secondary); border-color: var(--mc-secondary); color: var(--mc-white); }
}
