* {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
}

.main-title-wrapper {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px 0;
  border-radius: 12px;
}

.main-title {
  color: #000;
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }

  .main-title-wrapper {
    margin-bottom: 16px;
    padding: 12px 0;
  }
}

#reventonConfigurator {
  min-width: 100% !important;
}

#config-email {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  gap: 8px;
}

.email-label-wrapper {
  width: 100%;
}

.email-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: #e5e7eb;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.email-controls-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn.btn-default.send-email {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  height: 42px;
  min-width: 120px;
  flex-shrink: 0;
}

.control-group.send-button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  justify-content: center;
  align-self: center !important;
  margin: 0;
  height: 42px;
  flex-shrink: 0;
  margin-top: 15.5px;
}

.control-group.email-input {
  max-width: 300px;
  margin-right: 20px;
  flex: 1;
  min-width: 200px;
}

.email-message {
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 14px;
}

.email-message-content {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.email-message-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.email-message-close {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.email-message-success {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

.email-message-success .email-message-close {
  color: #fff;
}

.email-message-error {
  background: #f44336;
  border-color: #f44336;
  color: #fff;
}

.email-message-error .email-message-close {
  color: #fff;
}

.email-message-error .email-message-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.email-message-info {
  background: #e8f0fe;
  border-color: #e8f0fe;
  color: #111;
}

.email-message-info .email-message-close {
  color: #555;
}

.email-message-info .email-message-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #111;
}

.marketing-consents {
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
}

.consent-item {
  margin-bottom: 16px;
}

.consent-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.consent-checkbox {
  display: inline-flex;
  flex-direction: row;
  width: 100%;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
  margin: 0;
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
}

.required-star {
  color: #ef4444;
  font-weight: bold;
}

.withdrawal-info {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.65);
  margin-top: 6px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .marketing-consents {
    margin-top: 12px;
    padding: 12px 0;
  }

  .consent-item {
    margin-bottom: 14px;
  }

  .consent-title {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .consent-checkbox {
    font-size: 12px;
  }
}

.form-menu {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
  background: #fff;
  position: relative;
}
.form-menu .menu-btn {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 200px;
  background: none;
  border: none;
  color: #111;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 16px 0 8px 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  text-align: center;
  position: relative;
}
.form-menu .menu-btn.active {
  color: #bf1524;
  background: none;
}
.form-menu .menu-btn:hover {
  color: #bf1524;
  background: none;
}

.form-menu .language-switcher {
  position: relative;
  display: flex;
  border: none !important;
  outline: none !important;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin: 0;
  margin-left: auto;
  width: auto;
  height: auto;
  top: auto;
  right: auto;
  z-index: 1;
}

.form-menu .language-switcher select {
  border: none !important;
  outline: none !important;
}

.form-menu .language-switcher select:focus {
  border: none !important;
  outline: none !important;
}

.form-menu .language-switcher select:active,
.form-menu .language-switcher select:hover {
  color: #bf1524 !important;
}

input[type="email"],
input[type="text"],
input[type="number"],
select {
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 6px;
  outline: 1px solid #bdbdbd;
  border: none !important;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
  background: #fafbfc;
  color: #111;
  height: 42px !important;
  transition: border 0.2s, background 0.2s;
}
input[type="email"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: 1.5px solid #111;
  background: #fff;
}

.input-unit.celsius {
  position: absolute;
  right: 20px;
  top: calc(50% - 5px);
}

label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 0.5em;
  color: #555;
  letter-spacing: 0.01em;
  width: 300px;
}
label > span {
  margin-bottom: 4px;
  font-size: 0.97em;
  font-weight: 500;
  color: #555;
}

label > input[type="text"]:not([type="radio"]):not([type="checkbox"]) + span,
label > input[type="number"]:not([type="radio"]):not([type="checkbox"]) + span {
  margin-left: 8px;
  font-size: 1.05em;
  color: #888;
  font-weight: 400;
  align-self: center;
}

label > input[type="text"],
label > input[type="number"] {
  width: 100%;
  display: inline-block;
  margin-right: 0;
}

label > input[type="text"]:not([type="radio"]):not([type="checkbox"]) ~ span,
label > input[type="number"]:not([type="radio"]):not([type="checkbox"]) ~ span {
  margin-left: 8px;
  font-size: 1.05em;
  color: #888;
  font-weight: 400;
  align-self: center;
}

label > input[type="text"]:not([type="radio"]):not([type="checkbox"]) + span,
label > input[type="number"]:not([type="radio"]):not([type="checkbox"]) + span {
  margin-left: 8px;
  font-size: 1.05em;
  color: #888;
  font-weight: 400;
  align-self: center;
}

label > input[type="text"]:not([type="radio"]):not([type="checkbox"]) + span,
label > input[type="number"]:not([type="radio"]):not([type="checkbox"]) + span,
label > input[type="text"]:not([type="radio"]):not([type="checkbox"]) ~ span,
label > input[type="number"]:not([type="radio"]):not([type="checkbox"]) ~ span {
  display: inline-block;
  min-width: 18px;
  text-align: left;
}

.rewrite > .col-md-4,
.rewrite > .col-md-6,
.rewrite > .col-md-12 {
  width: 100%;
  margin-bottom: 18px;
  display: block;
}

.rewrite {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 1085px) {
  .powierzchnia_przegród .rewrite {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-template-rows: repeat(6, auto);
  }

  .powierzchnia_przegród .rewrite > .col-md-6:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .powierzchnia_przegród .rewrite > .col-md-6:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .powierzchnia_przegród .rewrite > .col-md-4:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .powierzchnia_przegród .rewrite > .col-md-4:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }

  .powierzchnia_przegród .rewrite > .col-md-4:nth-child(5) {
    grid-column: 1;
    grid-row: 5;
  }

  .powierzchnia_przegród .rewrite > .col-md-6:nth-child(6) {
    grid-column: 1;
    grid-row: 6;
  }

  .powierzchnia_przegród .rewrite > .col-md-12:nth-child(7) {
    grid-column: 2;
    grid-row: 1 / 7;
  }

  .powierzchnia_przegród .construction-options-grid {
    grid-column: 1 / -1;
    margin: 24px 0 32px 0;
  }
}

.btn.btn-default {
  min-width: 120px;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  margin: 8px 8px 0 0;
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
}
.btn.btn-default:hover {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.form-progress {
  display: none;
}

.input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: 100%;
}
.input-row input[type="text"],
.input-row input[type="number"] {
  flex: 1 1 auto;
  margin-right: 0;
  min-width: 0;
}
.input-unit {
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 1.05em;
  color: #888;
  font-weight: 400;
  min-width: 22px;
  height: 100%;
  white-space: nowrap;
}

.input-label-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 0.5em;
}
.input-label-row label {
  min-width: 160px;
  font-size: 0.98rem;
  font-weight: 500;
  color: #555;
  margin: 0;
  padding: 0;
  letter-spacing: 0.01em;
  display: block;
}
.input-label-row .input-row {
  flex: 1 1 auto;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.radio-row input[type="radio"] {
  margin: 0;
  accent-color: #bf1524;
}
.radio-row label {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  cursor: pointer;
  width: 100%;
}

select,
input {
  max-width: 400px;
}

#form-pages {
  overflow-y: visible;
  overflow-x: hidden;
  position: relative;
}

.form-page {
  height: 100%;
}

button[disabled] {
  background: #e0e0e0 !important;
  color: #aaa !important;
  border: 1px solid #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.results-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
}
.result {
  display: flex;
  align-items: baseline;
  font-size: 1.2rem;
  padding: 14px 24px;
  font-weight: 500;
  color: #222;
  gap: 8px;
}
.result span {
  margin-right: 6px;
  font-size: 1.1rem;
  color: #444;
}
.result span.sub {
  font-size: 0.8em;
  vertical-align: sub;
  margin-left: -2px;
  margin-right: 0;
  position: relative;
  top: 0.2em;
}

select:disabled {
  opacity: 0.3;
}

.efficiency-bar {
  width: 100%;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
}

.efficiency-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

#bramy-div {
  display: flex;
}

#drzwi-div {
  display: flex;
}

#powierzchnia-div p,
#okna-div p,
#bramy-div p,
#drzwi-div p {
  width: 100%;
  margin-right: 100px;
  justify-content: flex-start;
}

#okna-div p:first-child,
#bramy-div p:first-child,
#drzwi-div p:first-child {
  justify-content: space-between;
}

#powierzchnia-div span,
#okna-div span,
#bramy-div span,
#drzwi-div span {
  margin: 0 20px;
}

#okna-div {
  display: flex;
}

#powierzchnia-div {
  display: flex;
}

@media (max-width: 768px) {
  #config-email {
    padding: 12px;
    gap: 12px;
  }

  .email-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .control-group.email-input {
    max-width: 100%;
    margin-right: 0;
    width: 100%;
  }

  .control-group.send-button {
    width: 100%;
    justify-content: center;
  }

  .btn.btn-default.send-email {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    height: 48px;
  }

  .email-message {
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .email-message-content {
    padding: 10px 12px;
    font-size: 13px;
  }

  .email-message-text {
    font-size: 13px;
    line-height: 1.3;
  }

  .email-message-close {
    width: 18px;
    height: 18px;
    font-size: 16px;
  }

  .form-menu {
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 0;
  }

  .form-menu .menu-btn {
    flex: none;
    min-width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    text-align: left;
    border-radius: 0;
    background: #fff;
  }

  .form-menu .menu-btn:last-child {
    border-bottom: none;
  }

  .form-menu .menu-btn.active {
    color: #bf1524;
  }

  .form-progress {
    display: none;
  }

  #form-pages {
    min-height: auto;
    padding: 16px 0;
  }

  .rewrite {
    padding: 0 16px;
  }

  .input-label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .input-label-row label {
    min-width: 100%;
    margin-bottom: 4px;
  }

  .input-label-row .input-row {
    width: 100%;
  }

  .results-row {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .result {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1rem;
  }

  #bramy-div {
    flex-direction: column;
    align-items: flex-start;
  }

  #drzwi-div {
    flex-direction: column;
    align-items: flex-start;
  }

  #powierzchnia-div p,
  #okna-div p,
  #bramy-div p,
  #drzwi-div p {
    margin-right: 0;
    justify-content: flex-start;
  }

  #okna-div p:first-child,
  #bramy-div p:first-child,
  #drzwi-div p:first-child {
    justify-content: flex-start;
  }

  #powierzchnia-div span,
  #okna-div span,
  #bramy-div span,
  #drzwi-div span {
    margin: 0 10px;
  }

  #okna-div {
    flex-direction: column;
    align-items: flex-start;
  }

  #powierzchnia-div {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  #config-email {
    padding: 10px;
    gap: 10px;
    border-radius: 6px;
  }

  .email-label {
    font-size: 11px;
    padding: 3px 6px;
  }

  .email-controls-row {
    gap: 10px;
  }

  .btn.btn-default.send-email {
    padding: 14px 16px;
    font-size: 16px;
    height: 50px;
    border-radius: 8px;
  }

  .email-message-content {
    padding: 8px 10px;
  }

  .email-message-text {
    font-size: 12px;
    line-height: 1.25;
  }

  .email-message-close {
    width: 16px;
    height: 16px;
    font-size: 14px;
  }

  .form-menu .menu-btn {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .rewrite {
    padding: 0 12px;
  }

  .input-label-row {
    gap: 6px;
  }

  .result {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  #powierzchnia-div span,
  #okna-div span,
  #bramy-div span,
  #drzwi-div span {
    margin: 0 5px;
  }

  #powierzchnia-div p,
  #okna-div p,
  #bramy-div p,
  #drzwi-div p {
    font-size: 0.9rem;
  }

  #reventonConfigurator {
    min-height: auto;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  #config-email {
    padding: 14px;
  }
}

.form-menu .language-select {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #bdbdbd !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  min-width: 120px !important;
  max-width: 150px !important;
  display: inline-block !important;
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  outline: none !important;
  height: auto !important;
  margin: 0 !important;
}

.form-menu .language-select:hover {
  border-color: #111 !important;
  background: #f8f9fa !important;
}

.form-menu .language-select:focus {
  outline: 1.5px solid #111 !important;
  background: #fff !important;
  border-color: #111 !important;
}

.form-menu .language-select option {
  padding: 8px 12px;
  font-size: 14px;
  background: #fff;
  color: #111;
}

@media (max-width: 768px) {
  .form-menu .language-switcher {
    width: 100%;
    padding: 12px 16px;
    justify-content: center;
  }

  .form-menu .language-select {
    min-width: 140px !important;
    max-width: 180px !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
  }
}

.devices-enable-section {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.devices-enable-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.devices-checkboxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #bf1524;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  margin: 0;
}

.results-row .result.qt-base {
  color: #6b7280;
  font-size: 0.9em;
}

.results-row .result.qt-reduced {
  color: #059669;
  font-weight: 600;
}

.results-row .result.heat-reduction {
  color: #dc2626;
  font-weight: 500;
}

.results-row .result.qt-reduced::before {
  content: "↓ ";
  color: #059669;
}

.results-row .result.heat-reduction::before {
  content: "💡 ";
}

.device-settings {
  margin: 10px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
}

.device-checkboxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #bf1524;
  cursor: pointer;
}

.results-row {
  transition: all 0.15s ease;
}

#page-moc .content .rewrite {
  transition: height 0.2s ease;
}

.heat-reduction-details {
  margin: 5px 0;
  padding: 6px 10px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  min-height: 32px;
  transition: all 0.2s ease;
}

.reduction-item {
  margin: 1px 0;
  color: #555;
  font-weight: 400;
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reduction-item.positive {
  color: #059669;
}

.reduction-item.negative {
  color: #dc2626;
}

.reduction-percent {
  font-weight: 600;
  font-size: 12px;
}

.reduction-percent.positive {
  color: #dc2626;
}

.reduction-percent.negative {
  color: #059669;
}

.reduction-total {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid #e5e7eb;
  font-weight: 500;
  color: #555;
}

.checkbox-label.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkbox-label.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.checkbox-label.disabled span {
  cursor: not-allowed;
}

.availability-info {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  margin-left: 4px;
}

.availability-info {
  position: absolute;
  bottom: 0;
}

.device-settings,
.checkbox-label:disabled {
  position: relative;
}
