/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;

  /* prostor za fiksni header */
  padding-top: 60px;    /* visina headera */
  padding-bottom: 0;
}

/* GLOBAL CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* HEADER */
.main-header {
  background-color: #0077cc;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: 50px;
}

.main-header .container {
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ddd;
}

/* REZERVACIJA KONTEJNER */
.reservation-container {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);

  /* da stane između headera i footera */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 32px; /* dodatni prostor za poruku */
}

.reservation-container h2 {
  margin-bottom: 8px;
  text-align: center;
  font-size: 1.6rem;
  color: #0077cc;
}

.reservation-container > p {
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
}

/* FORM ELEMENTI */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.form-row,
.triplet-row,
.two-equal,
.email-telefon {
  display: flex;
  gap: 10px;
}

.form-row > div,
.triplet-row > div,
.two-equal > div,
.email-telefon > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 14px;
  margin-bottom: 3px;
}

input, select {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.email-hint {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* DUGME + status */
.form-buttons {
  margin-top: 1px;
  margin-bottom: 1px;
}

button {
  padding: 6px 12px;
  font-size: 14px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease;
}

button:hover {
  background: #005fa3;
}

#statusMessage {
  min-height: 3.2em;  /* 2 reda teksta */
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 14px;
}

/* CIJENE */
.total-price {
  text-align: left;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.3;
}

.total-price p {
  margin: 2px 0;
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #333;
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 14px;
  z-index: 900;
}

/* RESPONSIVE – MOBILNI */
@media (max-width: 768px) {
  .reservation-container {
    max-width: 100%;
    margin: 0;
    padding: 12px 10px 20px; /* minimalna margina + prostor dole */
    border-radius: 0;
    box-shadow: none;
  }

  .form-row,
  .triplet-row,
  .two-equal,
  .email-telefon {
    flex-direction: column;
    gap: 10px;
  }

  input, select, button {
    width: 100%;
  }

  .form-buttons button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .total-price p {
    font-size: 0.95rem;
  }
}
