/*custom font*/
@import url(https://fonts.googleapis.com/css?family=Montserrat);

/*basic reset*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  height: 100%;
  background: #f0e9e9;
  background: -webkit-linear-gradient(to left, #ffffff, #ffffff);
}

body {
  font-family: "Montserrat", sans-serif;
  background: transparent;
  font-size: 15px;
  display: flex;
  color: #2c3e50;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
}

.page-wrapper {
  flex: 1;
}

a {
  color: #b30000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Form styles */
#msform {
  text-align: center;
  position: relative;
  margin-top: 30px;
}

#msform fieldset {
  background: white;
  border: 0 none;
  border-radius: 0px;
  box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
  padding: 20px 30px;
  box-sizing: border-box;
  width: 80%;
  margin: 0 10%;
  position: relative;
}

#msform fieldset:not(:first-of-type) {
  display: none;
}

/* Inputs */
#msform input,
#msform textarea,
#msform select {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 0px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  font-family: montserrat;
  color: #2c3e50;
  font-size: 13px;
}

#msform input:focus,
#msform textarea:focus,
#msform select:focus {
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  border: 1px solid #b30000;
  outline-width: 0;
  transition: All 0.5s ease-in;
  -webkit-transition: All 0.5s ease-in;
  -moz-transition: All 0.5s ease-in;
  -o-transition: All 0.5s ease-in;
}

/* Buttons */
#msform .action-button {
  width: 100px;
  background: #b30000;
  font-weight: bold;
  color: white;
  border: 0 none;
  border-radius: 25px;
  cursor: pointer;
  padding: 10px 5px;
  margin: 10px 5px;
}

#msform .action-button:hover,
#msform .action-button:focus {
  box-shadow: 0 0 0 2px white, 0 0 0 3px #ff0000;
}

#msform .action-button-previous {
  width: 100px;
  background: #c5c5f1;
  font-weight: bold;
  color: white;
  border: 0 none;
  border-radius: 25px;
  cursor: pointer;
  padding: 10px 5px;
  margin: 10px 5px;
}

#msform .action-button-previous:hover,
#msform .action-button-previous:focus {
  box-shadow: 0 0 0 2px white, 0 0 0 3px #c5c5f1;
}

/* Headings */
.fs-title {
  font-size: 25px;
  text-transform: uppercase;
  color: #2c3e50;
  margin-bottom: 10px;
  letter-spacing: 2px;
  font-weight: bold;
}

.fs-subtitle {
  font-weight: normal;
  font-size: 20px;
  color: #666;
  margin-bottom: 20px;
}

/* Progress bar */
#progressbar {
  margin-bottom: 30px;
  overflow: hidden;
  counter-reset: step;
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
}

#progressbar li {
  list-style-type: none;
  color: black;
  text-transform: uppercase;
  font-size: 12px;
  position: relative;
  flex: 1;
  text-align: center;
  max-width: 20%;
}

#progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 24px;
  height: 24px;
  line-height: 24px;
  display: block;
  font-size: 12px;
  color: #333;
  background: white;
  border-radius: 50%;
  margin: 0 auto 5px auto;
  border: 2px solid #ddd;
}

#progressbar li:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #ddd;
  position: absolute;
  left: -50%;
  top: 11px;
  z-index: -1;
}

#progressbar li:first-child:after {
  content: none;
}

#progressbar li.active:before,
#progressbar li.active:after {
  background: #ff0202;
  color: white;
  border-color: #ff0202;
}

/* Property type buttons */
.property-type-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

.property-button {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 120px;
  min-height: 80px;
  position: relative;
}

.property-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.property-button .button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #f0f0f0;
  border: 2px solid #ff000069;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

.property-button input[type="radio"]:checked + .button-text {
  background-color: #ff0000a4;
  color: rgb(0, 0, 0);
  border-color: #ff000069;
}

.property-button:hover .button-text {
  background-color: #ff1d42;
}

.property-button input[type="radio"]:checked:hover + .button-text {
  background-color: #b30000;
}

/* Size buttons */
.size-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 20px;
  gap: 10px;
}

.size-button {
  flex: 1 1 calc(25% - 10px);
  min-width: 80px;
  min-height: 70px;
  position: relative;
}

.size-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.size-button .button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  font-size: 14px;
  background-color: #f0f0f0;
  border: 2px solid #ff000069;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

.size-button input[type="radio"]:checked + .button-text {
  background-color: #ff0000a4;
  color: rgb(0, 0, 0);
  border-color: #ff000069;
}

.size-button:hover .button-text {
  background-color: #ff1d42;
}

.size-button input[type="radio"]:checked:hover + .button-text {
  background-color: #b30000;
}

/* Upravte styl pro stavové tlačítka (stav nemovitosti) */
.condition-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 20px;
  gap: 10px;
}

.condition-button {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 100px;
  min-height: 80px;
  position: relative;
}

.condition-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.condition-button .button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  font-size: 14px;
  background-color: #f0f0f0;
  border: 2px solid #ff000069;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

.condition-button input[type="radio"]:checked + .button-text {
  background-color: #ff0000a4;
  color: rgb(0, 0, 0);
  border-color: #ff000069;
}

.condition-button:hover .button-text {
  background-color: #ff1d42;
}

.condition-button input[type="radio"]:checked:hover + .button-text {
  background-color: #b30000;
}

/* State buttons (new section for stav nemovitosti) */
.state-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

.state-button {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 120px;
  min-height: 80px;
  position: relative;
}

.state-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.state-button .button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #f0f0f0;
  border: 2px solid #ff000069;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

.state-button input[type="radio"]:checked + .button-text {
  background-color: #ff0000a4;
  color: rgb(0, 0, 0);
  border-color: #ff000069;
}

.state-button:hover .button-text {
  background-color: #ff1d42;
}

.state-button input[type="radio"]:checked:hover + .button-text {
  background-color: #b30000;
}

/* Number input */
.number-input {
  display: flex;
  align-items: center;
}

.number-input button {
  width: 30px;
  height: 30px;
  border: none;
  background: #ddd;
  font-size: 18px;
  cursor: pointer;
}

.number-input input {
  width: 60px;
  text-align: center;
  font-size: 16px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.input-wrapper label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #2e3a45;
}

.custom-number-input {
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
}

.custom-number-input input {
  width: 60px;
  text-align: center;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-left: none;
  border-right: none;
  outline: none;
  background-color: white;
  color: #2e3a45;
  height: 48px;
  line-height: 1;
}

.custom-number-input .btn {
  background-color: #b30000;
  color: white;
  border: none;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.custom-number-input .btn:hover {
  background-color: #800000;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
  color: #b30000;
  font-size: 26px;
  margin: 0;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  background: #ffffff;
  color: #2c3e50;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95em;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.footer-logo {
  color: #b30000;
  font-weight: 700;
  font-size: 1.3em;
  letter-spacing: 1px;
}

.footer-links a {
  color: #2c3e50;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #b30000;
}

.footer-links span {
  color: #999;
}

/* Mobile styles */
@media (max-width: 768px) {
  #msform fieldset {
    width: 95% !important;
    margin: 0 2.5% !important;
    padding: 15px !important;
  }

  .fs-title {
    font-size: 1.3rem !important;
    letter-spacing: 1px;
  }

  .fs-subtitle {
    font-size: 1rem !important;
  }

  #msform .action-button,
  #msform .action-button-previous {
    width: 45% !important;
    padding: 12px 5px !important;
    margin: 5px 2.5% !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .property-type-buttons,
  .size-buttons,
  .condition-buttons,
  .state-buttons {
    gap: 8px;
  }

  .property-button,
  .size-button,
  .condition-button,
  .state-button {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: unset;
    min-height: 70px;
  }

  .property-button .button-text,
  .size-button .button-text,
  .condition-button .button-text,
  .state-button .button-text {
    padding: 8px 4px !important;
    font-size: 0.9rem !important;
    line-height: 1.2;
  }

  #progressbar li {
    font-size: 0.7rem !important;
    letter-spacing: 0;
  }

  #progressbar li:before {
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
  }

  #msform input,
  #msform textarea,
  #msform select {
    padding: 12px !important;
  }

  .custom-number-input input {
    width: 50px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }

  .custom-number-input .btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }

  #progressbar {
    margin-bottom: 15px;
  }

  #progressbar li {
    width: 25%;
    font-size: 0;
  }

  #progressbar li:before {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .property-button,
  .size-button,
  .condition-button,
  .state-button {
    flex: 1 1 100% !important;
    margin: 4px 0 !important;
    min-height: 60px;
  }

  #msform .action-button,
  #msform .action-button-previous {
    width: 100% !important;
    margin: 5px 0 !important;
  }

  .property-button .button-text,
  .size-button .button-text,
  .condition-button .button-text,
  .state-button .button-text {
    font-size: 0.85rem !important;
  }
}

.information-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 20px;
  gap: 10px;
}

.information-button {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 100px;
  min-height: 80px;
  position: relative;
}

.information-button input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.information-button .button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  font-size: 14px;
  background-color: #f0f0f0;
  border: 2px solid #ff000069;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

.information-button input[type="checkbox"]:checked + .button-text {
  background-color: #ff0000a4;
  color: rgb(0, 0, 0);
  border-color: #ff000069;
}

.information-button:hover .button-text {
  background-color: #ff1d42;
}

.information-button input[type="checkbox"]:checked:hover + .button-text {
  background-color: #b30000;
}
