* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

h2 {
  font-size: 35px;
  background: white;
  color: #1a6f1a;
  box-shadow: 0 0 4px #1a6f1a;
  margin: 10px 0;
  margin-left: -15px;
  text-align: center;
  width: calc(100% + 30px);
  padding: 10px 0;
}

h3 {
  text-align: center;
  padding: 10px 0;
  font-size: 25px;
  border-bottom: 1px solid;
  margin: 10px 0;
  color: #1a6f1a;
}

p {
  padding: 10px 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: #1e3b1e;
}

label,
input {
  font-size: 20px;
}

dl {
  margin: 15px 0;
}

dt {
  font-size: 20px;
}

dd {
  margin: 10px 0;
}

[id] {
  scroll-margin-top: 90px;
}

header {
  position: fixed;
  height: 80px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  background-color: white;
}

header img {
  margin-left: 20px;
}

nav {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #1a6f1a;
  margin-top: -4px;
}

.menu-icon:not(.clicked)+nav {
  display: none;
}

nav a {
  display: block;
  text-decoration: none;
  color: #1a6f1a;
  padding: 10px 0;
  background-color: white;
  margin-bottom: 2px;
  font-size: 20px;
  font-weight: 600;
}

nav a:last-of-type {
  margin-bottom: 0;
}

.menu-icon {
  display: inline-block;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
}

.menu-icon .bar1,
.menu-icon .bar2,
.menu-icon .bar3 {
  width: 35px;
  height: 5px;
  background-color: #1a6f1a;
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 10px;
}

/* Rotate first bar */
.menu-icon.clicked .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

/* Fade out the second bar */
.menu-icon.clicked .bar2 {
  opacity: 0;
}

/* Rotate last bar */
.menu-icon.clicked .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

main {
  margin-top: 80px;
}

.hero-image-container {
  background-image: url("/assets/images/hero1280.avif");
  background-size: cover;
  position: relative;
  height: 62vh;
}

.hero h1 {
  background-color: white;
  color: black;
  font-size: 14vw;
  font-weight: 800;
  padding: 0 10px;
  mix-blend-mode: screen;
  text-transform: uppercase;
  line-height: 1;
}

section:not(.hero) {
  padding: 0 15px;
}

section.hero {
  margin-bottom: 15px;
}

.uvod>p {
  font-size: 20px;
  line-height: 1.5;
  color: #1e3b1e;
  font-weight: 600;
}

.uvod-usluge {
  display: grid;
  font-size: 20px;
  color: white;
  row-gap: 10px;
  text-align: center;
}

.uvod-usluge p {
  background-color: #1a6f1a;
  color: white;
  padding: 10px;
  border-radius: 15px;
  text-transform: uppercase;
  box-shadow: 0 0 5px 0px black;
}

.usluge>input {
  background-color: #1a6f1a;
  color: white;
  padding: 10px;
  border-radius: 15px;
  text-transform: uppercase;
  box-shadow: 0 0 5px 0px black;
  display: block;
  width: 100%;
  font-size: 20px;
  font-weight: 600;
}

h3+img {
  border-radius: 15px;
}

.form {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  overflow: auto;
  padding: 50px 0;
}

div.progress-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 20px;
  background-color: white;
  border: 1px solid black;
  margin: 15px;
  border-radius: 10px;
  z-index: 11;
}

p.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #1a6f1a;
  transition: width 0.4s;
  text-align: center;
  color: white;
  border-radius: 10px;
  padding: 0;
}

.korak {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  row-gap: 20px;
}

.korak-zupanija {
  height: auto;
}

.korak>p {
  margin: 0 15px;
  text-align: center;
}

.korak:nth-of-type(3) {
  display: block;
}

.korak .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  margin: 10px;
}

.korak .grid img {
  width: 50px;
}

.korak .grid>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 5px 0px black;
  padding: 15px 5px;
  border-radius: 10px;
  justify-content: space-between;
  text-align: center;
}

.korak .grid>div.clicked {
  background: #1a6f1a;
  color: white;
  font-weight: bold;
}

.korak .grid>div.clicked p {
  color: white;
}

.potrosnja,
.povrsina,
.model {
  display: flex;
  justify-content: center;
  column-gap: 5px;
}

.podaci {
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  margin: 0 auto;
}

.podaci>div {
  display: flex;
  flex-direction: column;
}

.previous-next {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  background-color: white;
  display: none;
  z-index: 11;
}

.previous,
.next {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.disabled {
  pointer-events: none;
  opacity: 0.3;
}

.previous {
  border-right: 1px solid black;
}

.partneri-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
}

.partneri-lista img {
  width: 100%;
}

section.kontakt a {
  color: #1a6f1a;
}

@media only screen and (min-width: 641px) {
  .hero-image-container {
    background-image: url("/assets/images/hero1280.avif");
  }
}

@media only screen and (min-width: 992px) {
  .partneri-lista {
    grid-template-columns: 1fr 1fr 1fr;

  }

  .menu-icon:not(.clicked)+nav {
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 0;
    right: 0;
    height: 80px;
    align-items: center;
    background: transparent;
  }

  .menu-icon {
    display: none;
  }

  nav a {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }

  nav a:hover {
    color: white;
    background-color: #1a6f1a;
  }

  .uvod-usluge {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 20px;
  }

  .uvod-usluge p:hover,
  .usluge>input:hover {
    color: #1a6f1a;
    background-color: white;
    cursor: pointer;
  }

  p.next:hover,
  p.previous:hover {
    color: white;
    background-color: #1a6f1a;
    cursor: pointer;
  }

  .korak .grid>div:hover {
    background: #1a6f1a;
    color: white;
    font-weight: bold;
    cursor: pointer;
  }

  .korak .grid>div:hover p {
    color: white;
  }

  h3+img {
    width: 640px;
    margin: auto;
    display: block;
  }

  .usluge>input {
    width: 640px;
    margin: auto;
  }

  body {
    max-width: 1280px;
    margin: auto;
  }

  .hero h1 {
    font-size: clamp(16px, 14vw, 101px);
  }

  .hero-image-container {
    height: 77vh;
  }

  header img{
    cursor: pointer;
  }
}

@media only screen and (min-width: 1281px) {
  .menu-icon:not(.clicked)+nav{
    right: calc((100vw - 1280px - 15px)/2);
  }

  header img{
    margin-left: calc((100vw - 1280px - 15px)/2);
  }

  .hero h1{
    padding: 0;
  }
}