/* ===== RESET & BASE STYLES ===== */
:root {
  --primary-color: #3273dc;
  --primary-hover: #2366d1;
  --light-bg: #f5f5f5;
  --dark-text: #363636;
  --grey-text: #4a4a4a;
  --light-border: #dbdbdb;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 6px;
}

body {
  background-color: var(--light-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
}

/* ===== LAYOUT & SECTIONS ===== */
.section {
  padding: 2rem;
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== PROGRESS BAR ===== */
.progress {
  margin-bottom: 2rem;
  height: 0.75rem;
  border-radius: 50px;
  overflow: hidden;
  background-color: #e9ecef;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress::-webkit-progress-bar {
  background-color: #e9ecef;
  border-radius: 50px;
}

.progress::-webkit-progress-value {
  background-color: var(--primary-color);
  border-radius: 50px;
  transition: width 0.5s ease;
}

.progress::-moz-progress-bar {
  background-color: var(--primary-color);
  border-radius: 50px;
}

/* ===== STEPS ===== */
.step {
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-bottom: 1.5rem;
}

.step.is-hidden {
  display: none;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-border);
  color: var(--dark-text);
}

/* ===== FORM ELEMENTS ===== */
.field {
  margin-bottom: 1.5rem;
}

.field-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--grey-text);
  display: block;
}

.field-help {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

.control {
  position: relative;
}

/* Form validation */
input.is-success, select.is-success {
  border-color: #23d160;
}

input.is-danger, select.is-danger {
  border-color: #ff3860;
}

.help {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.help.is-danger {
  color: #ff3860;
}

.help.is-success {
  color: #23d160;
}

/* Form icon positioning */
.has-icons-left .icon,
.has-icons-right .icon {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
}

.has-icons-left .icon {
  left: 0;
}

.has-icons-right .icon {
  right: 0;
}

.has-icons-left input,
.has-icons-left select {
  padding-left: 2.5rem;
}

.has-icons-right input,
.has-icons-right select {
  padding-right: 2.5rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 1rem;
}

/* Custom styling for select elements */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%23363636' 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.7rem center;
  background-size: 1em;
  padding-right: 2.5rem;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

select option {
  font-weight: normal;
  color: var(--dark-text);
  background-color: white;
}

select[multiple] {
  height: auto;
  background-image: none;
  padding-right: 0.75rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

/* Koordinat field styling */
.field .control input[readonly] {
  background-color: #f8f9fa;
  border: 1px dashed var(--light-border);
  color: var(--grey-text);
  cursor: not-allowed;
}

/* Form element groups */
.field.is-horizontal {
  display: flex;
  flex-wrap: wrap;
}

.field.is-horizontal .field-label {
  flex-basis: 200px;
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.field.is-horizontal .field-body {
  flex-grow: 1;
  flex-shrink: 1;
}

/* Form element sizing */
.input-small {
  max-width: 150px;
}

.input-medium {
  max-width: 300px;
}

.input-large {
  max-width: 450px;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.button:focus {
  outline: none;
}

.button.is-primary {
  background-color: var(--primary-color);
  color: white;
}

.button.is-primary:hover {
  background-color: var(--primary-hover);
}

.button.is-info {
  background-color: #209cee;
  color: white;
  margin-top: 0.5rem;
}

.button.is-info:hover {
  background-color: #1496ed;
}

.button.is-success {
  background-color: #23d160;
  color: white;
}

.button.is-success:hover {
  background-color: #20bc56;
}

.button.is-outlined {
  background-color: transparent;
  border: 1px solid var(--light-border);
  color: var(--grey-text);
}

.button.is-outlined:hover {
  background-color: #f5f5f5;
}

.button i, .button svg {
  margin-right: 0.5rem;
}

/* Button group spacing */
.field.is-grouped .control:not(:last-child) {
  margin-right: 0.75rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .section {
    padding: 1.5rem;
  }
  
  .button {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .field.is-grouped {
    flex-direction: column;
  }
  
  .field.is-grouped .control {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .field.is-grouped .control:last-child {
    margin-bottom: 0;
  }
  
  .step-title {
    font-size: 1.25rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.has-text-centered {
  text-align: center;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.is-flex {
  display: flex;
}

.is-justify-between {
  justify-content: space-between;
}

.is-align-center {
  align-items: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step.is-active {
  animation: fadeIn 0.4s ease-out;
}