/* Spoločné štýly pre formuláre a inputy (Zemina, Rastliny, Plán výsadby) */
#material-calc-form .form-control,
#material-calc-form select,
#material-calc-form input,
#plant-calc-form .form-control,
#plant-calc-form select,
#plant-calc-form input,
#plan-calc-form .form-control,
#plan-calc-form select,
#plan-calc-form input,
#planEmailFormBox input {
  background-color: #F8FBF3 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, border-bottom 0.2s ease;
}

#material-calc-form .form-control:focus,
#material-calc-form select:focus,
#material-calc-form input:focus,
#plant-calc-form .form-control:focus,
#plant-calc-form select:focus,
#plant-calc-form input:focus,
#plan-calc-form .form-control:focus,
#plan-calc-form select:focus,
#plan-calc-form input:focus,
#planEmailFormBox input:focus {
  border-color: #9fb08f !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Odstránenie modrého pozadia prehliadača pri automatickom vyplnení (autofill) */
#material-calc-form input:-webkit-autofill,
#plant-calc-form input:-webkit-autofill,
#plan-calc-form input:-webkit-autofill,
#planEmailFormBox input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #F8FBF3 inset !important;
  -webkit-text-fill-color: #212529 !important;
  transition: background-color 5000s ease-in-out 0s;
}

#material-calc-form input:-webkit-autofill:focus,
#plant-calc-form input:-webkit-autofill:focus,
#plan-calc-form input:-webkit-autofill:focus,
#planEmailFormBox input:-webkit-autofill:focus {
  border-color: #9fb08f !important;
}

/* Odstránenie modrého autofillu pre validný stav (vynútenie zelenej farby) */
#plan-calc-form input.valid_input:-webkit-autofill,
#planEmailFormBox input.valid_input:-webkit-autofill,
#planEmailFormBox .form-control.valid_input:-webkit-autofill,
#material-calc-form input.valid_input:-webkit-autofill,
#material-calc-form .form-control.valid_input:-webkit-autofill,
#plant-calc-form input.valid_input:-webkit-autofill,
#plant-calc-form .form-control.valid_input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #E1EBE2 inset !important;
  -webkit-text-fill-color: #212529 !important;
}

/* Farby výsledkových blokov a kariet rastlín */
#materialCalcResult .bg-white,
#plantCalcResult .bg-white,
#plantLookupResult .bg-white,
#planCalcResult .bg-white {
  background-color: #F8FBF3 !important;
}

/* Odsadenie hlavných akčných tlačidiel */
#calcMaterialBtn,
#calcPlantBtn,
#calcPlanBtn {
  margin-top: 14px;
}

/* Odkazy v texte stránky */
#page-content p a,
#page-content .lead a,
#page-content .small a {
  color: #889e25;
  text-decoration: underline;
}

#page-content p a:hover,
#page-content .lead a:hover,
#page-content .small a:hover {
  color: #889e25;
  text-decoration: none;
}

/* Upsell Banner pre plochy nad 50m2 */
.upsell-banner {
  background-color: #F8FBF3;
  border: 1px solid #e1e8d8; /* Návrat k decentnému rámu */
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 20px;
  width: 100%;
}

.upsell-content {
  line-height: 1.4;
  white-space: normal !important;
  overflow-wrap: break-word;
  width: 100%;
}

.upsell-title {
  color: #ff0000; /* Iba tento text na červeno */
  font-size: 14px;
  display: block;
}

.upsell-subtitle {
  font-size: 13px;
}

.upsell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background-color: transparent;
  border: 1px solid #6c757d;
  color: #6c757d !important;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.upsell-btn:hover {
  background-color: rgba(108, 117, 125, 0.1);
}

/* Optimalizácia Upsell banneru pre mobilné zariadenia */
@media (max-width: 767.98px) {
  .upsell-banner {
    padding: 16px;
  }
  
  .upsell-title {
    font-size: 15px;
    margin-bottom: 6px;
    white-space: normal !important;
  }
  
  .upsell-subtitle {
    display: block;
    line-height: 1.5;
    white-space: normal !important;
  }
  
  .upsell-btn {
    width: 100%;
    height: 40px;
    font-size: 14px;
  }
}

/* Tlačové štýly (Základný fallback) */
@media print {
  header, footer, #subheader, #cookie-banner, #chatbot-container, #bocny-panel,
  #back-to-top, #de-loader, .col-lg-3, .spacer-double,
  #material-calc-form, #plant-calc-form, #plan-calc-form,
  #calcActionButtons, .hide-on-print, #bedDrawingWrapper,
  #page-content > section > .container > .row:last-child
  {
    display: none !important;
  }

  * {
    background: transparent !important;
    box-shadow: none !important;
  }
  
  svg, svg * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

#suggestedPlantsList,
#suggestedPlantsList * {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#visualPlanContainer {
  overflow: hidden;
}

#visualPlanContainer svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Vizuálna validácia polí a úprava checkboxu (AI generátor dizajn) */
#plan-calc-form input.valid_input,
#plan-calc-form select.valid_input,
#plan-calc-form .form-control.valid_input,
#plan-calc-form .form-select.valid_input,
#planEmailFormBox input.valid_input,
#planEmailFormBox .form-control.valid_input,
#material-calc-form input.valid_input,
#material-calc-form select.valid_input,
#material-calc-form .form-control.valid_input,
#plant-calc-form input.valid_input,
#plant-calc-form select.valid_input,
#plant-calc-form .form-control.valid_input {
  background-color: #E1EBE2 !important;
  border: 1px solid #84a332 !important;
  box-shadow: none !important;
}

#plan-calc-form input.valid_input:focus,
#plan-calc-form select.valid_input:focus,
#plan-calc-form .form-control.valid_input:focus,
#plan-calc-form .form-select.valid_input:focus,
#planEmailFormBox input.valid_input:focus,
#planEmailFormBox .form-control.valid_input:focus,
#material-calc-form input.valid_input:focus,
#material-calc-form select.valid_input:focus,
#material-calc-form .form-control.valid_input:focus,
#plant-calc-form input.valid_input:focus,
#plant-calc-form select.valid_input:focus,
#plant-calc-form .form-control.valid_input:focus {
  background-color: #e1eadf !important;
  border: 1px solid #84a332 !important;
  box-shadow: none !important;
}

/* Chybový stav - Textové polia */
#plan-calc-form input.error_input:not([type="checkbox"]),
#plan-calc-form select.error_input,
#plan-calc-form .form-control.error_input,
#plan-calc-form .form-select.error_input,
#planEmailFormBox input.error_input:not([type="checkbox"]),
#planEmailFormBox .form-control.error_input,
#material-calc-form input.error_input,
#material-calc-form select.error_input,
#material-calc-form .form-control.error_input,
#plant-calc-form input.error_input,
#plant-calc-form select.error_input,
#plant-calc-form .form-control.error_input {
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid #ff0000 !important;
}

/* Úprava checkboxu pre e-mailovú bránu */
#planEmailFormBox .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: #F8FBF3;
  border: 1px solid rgba(0, 0, 0, 0.18);
  width: 18px;
  height: 18px;
  border-radius: 0.25em;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Chybový stav - Checkbox */
#planEmailFormBox .form-check-input.error_input {
  border-color: rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.18) #ff0000 rgba(0, 0, 0, 0.18) !important;
  border-width: 1px !important;
}

#planEmailFormBox .form-check-input.valid_input:checked,
#planEmailFormBox .form-check-input:checked {
  background-color: #84a332 !important;
  border-color: #84a332 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

#planEmailFormBox .form-check-input:focus {
  box-shadow: none !important;
  border-color: #84a332 !important;
}

#planEmailFormBox .form-check-label {
  text-align: left;
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
  color: #5f6770;
  cursor: pointer;
}

/* Skrytie chybových hlásení */
#calcError,
#plantCalcError,
#planCalcError,
#planEmailError {
  display: none !important;
}

#planProfiBar {
  margin-top: 14px;
  margin-bottom: 10px;
  background: #eef4ed;
  border: 1px solid #dce7da;
  border-radius: 10px;
  padding: 14px;
}

#planProfiBar .plan-profi-row

#planProfiBar .plan-profi-btn,
#planProfiBar .plan-profi-input,
#planProfiBar .plan-profi-select {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  transition: none !important;
  box-shadow: none !important;
}

#planProfiBar .plan-profi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px !important;
  white-space: nowrap;
  background: transparent !important;
  color: #5f6f7c !important;
  border: 1px solid #8f9aa3 !important;
}

#planProfiBar .plan-profi-btn:hover,
#planProfiBar .plan-profi-btn:focus,
#planProfiBar .plan-profi-btn:active {
  background: transparent !important;
  color: #4f5d69 !important;
  border-color: #6f7d88 !important;
  box-shadow: none !important;
}

#planProfiBar .plan-profi-btn.btn-success,
#planProfiBar .plan-profi-btn.btn-outline-success,
#planProfiBar .plan-profi-btn.btn-outline-danger,
#planProfiBar .plan-profi-btn.btn-outline-secondary,
#planProfiBar .plan-profi-btn.btn-outline-dark {
  background: transparent !important;
  color: #5f6f7c !important;
  border: 1px solid #8f9aa3 !important;
}

#planProfiBar .plan-profi-btn:disabled {
  opacity: 0.5 !important;
  background: transparent !important;
  color: #8d98a1 !important;
  border-color: #b7c0c6 !important;
  cursor: not-allowed !important;
}

#planProfiBar .plan-profi-input,
#planProfiBar .plan-profi-select {
  background: #fff !important;
  border: 1px solid #c9d2c8 !important;
  color: #4f5d69 !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}

#planProfiBar .plan-profi-input:focus,
#planProfiBar .plan-profi-select:focus {
  border-color: #97a6a0 !important;
  box-shadow: none !important;
  outline: none !important;
}

#planProfiBar .plan-profi-count {
  width: 110px;
  text-align: center;
}

#planProfiBar #planProfiToggle {
  min-width: 190px;
}

#planProfiBar #planProfiMoveMode {
  min-width: 180px;
}

#planProfiBar #planProfiSearchInput {
  min-width: 300px;
}

#planProfiBar #planProfiAddInput {
  min-width: 300px;
}

#planProfiBar #planProfiAddRole {
  min-width: 190px;
}

#planProfiBar #planProfiPicked {
  font-size: 15px;
  color: #60707b;
}

#planProfiBar #planProfiMessage {
  min-height: 20px;
  font-size: 13px;
  color: #6c757d;
}

@media (max-width: 991px) {
  #planProfiBar .plan-profi-row {
    gap: 10px;
  }

  #planProfiBar .plan-profi-btn,
  #planProfiBar .plan-profi-input,
  #planProfiBar .plan-profi-select {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    font-size: 15px !important;
  }

  #planProfiBar #planProfiSearchInput,
  #planProfiBar #planProfiAddInput {
    min-width: 260px;
  }
}

@media (max-width: 767px) {
  #planProfiBar .plan-profi-row {
    flex-direction: column;
    align-items: stretch;
  }

  #planProfiBar .plan-profi-btn,
  #planProfiBar .plan-profi-input,
  #planProfiBar .plan-profi-select,
  #planProfiBar .plan-profi-count {
    width: 100% !important;
    min-width: 0 !important;
  }

  #planProfiBar #planProfiToggle,
  #planProfiBar #planProfiMoveMode,
  #planProfiBar #planProfiSearchInput,
  #planProfiBar #planProfiAddInput,
  #planProfiBar #planProfiAddRole {
    min-width: 0 !important;
  }
}

/* Horné SEO / modelové sekcie */
.tool-examples-section {
  padding: 140px 0 60px 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .tool-examples-section {
    padding: 70px 0 40px 0;
  }
}

/* Všeobecné boxy v hornej sekcii */
.tool-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.tool-panel {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.tool-box-soft {
  background-color: #f1f1f1 !important;
}

/* Konkrétne farby boxov */
.tool-card-mulc {
  background-color: #EEF4E8;
}

.tool-card-zemina {
  background: rgba(225, 225, 225, 0.65);
}

.tool-card-strk {
  background-color: #f1f1f1;
}

.tool-panel-left {
  background-color: #F8FBF3;
}

.tool-panel-right {
  background-color: #F5F7EE;
}

.tool-panel-neutral {
  background-color: #F8F8F6;
}

/* Voliteľne: jemne zjednotený border/text na farebných boxoch */
.tool-card,
.tool-panel,
.tool-box-soft {
  border-color: rgba(0, 0, 0, 0.10) !important;
}

.tool-card p:last-child,
.tool-panel p:last-child {
  margin-bottom: 0;
}