/* ===== GLOBALNE VARIJABLE ===== */
:root {
  --primary-bg: #f4f4f4;
  --form-bg: #fff;
  --text-color: #333;
  --label-color: #555;
  --border-color: #ccc;
  --highlight-bg: #f9f9f9;
  --button-bg: #eba14c;
  --button-hover: #e64a19;
  --shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --input-radius: 4px;
  --mobile-bp: 768px;
}

/* ===== GLAVNI STILOVI ===== */
main {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background-color: var(--primary-bg);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form-container {
  background-color: var(--form-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: min(100%, 800px);
  margin: 2rem;
}

h1 {
  font-family: "Forum", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

/* ===== FORMA STILOVI ===== */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  width: 100%;
}

.form-group.half {
  width: 48%;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--label-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--button-bg);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

/* ===== DODATNE USLUGE ===== */
#services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.625rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
}

.package-details {
  margin-top: 0.625rem;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  background-color: var(--highlight-bg);
  font-size: 0.9rem;
  color: var(--label-color);
}

/* ===== SUBMIT BUTTON ===== */
button {
  width: 100%;
  padding: 0.625rem;
  background-color: var(--button-bg);
  color: white;
  border: none;
  border-radius: var(--input-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

button:hover,
button:focus {
  background-color: var(--button-hover);
  outline: none;
}

/* ===== RESPONZIVNOST ===== */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group.half {
    width: 100%;
  }

  #services-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem;
    margin: 1rem;
  }
}
