   /* form */

.idsk-registration-for-event__form {
   border: 1px solid #f0f0f0;
   border-radius: 10px;
}

.idsk-registration-for-event__form hr { margin-left: 12px; }

form {
    margin-bottom: 20px;   
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.05), 0 0 12px rgba(0, 0, 0, 0.05);
}

form > :not(.content-header) {
  
  margin-top: 0; 
  margin-bottom: 0;   
}

form > :not(.content-header):not(.govuk-button) {
  background: #fafafa;
}

form > :not(.content-header):first-child, 
form > .content-header + * {
  padding-top: 12px;
  border-top-left-radius: 12px;   
  border-top-right-radius: 12px;
} 
form > :last-child:not(.content-header) {
  padding-bottom: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
} 
form > :not(.content-header):not(ul):not(ol) {
  padding: 15px 30px;  
} 

form .govuk-button {
    margin-bottom: .5em;
} 


.summary {
  display: block;
  max-width: 100%;     
  box-sizing: border-box;   
  margin: 0 auto;          
  background: #fafafa;
  border-radius: 4px;
  padding: 6px 30px;
  margin-bottom: 20px;
  box-shadow: 0 12px 12px rgb(0 0 0 / 5%), 0 0 12px rgb(0 0 0 / 5%);
}

.summary .govuk-summary-list__key {
  width: 30%;
  color: #505a5f;
}
.summary .govuk-summary-list__value {
  width: 70%;
  color: #0b0c0c;
}


.lbl-red { color: red; }
.lbl-green { color: green; }



 
/* stepper */
.stepper-container {
  margin: 40px auto;
  font-family: "Source Sans Pro", Arial, sans-serif;
  background: #fff;
  border: 1px solid #d6d7d9;
  border-radius: 999px;
  padding: 12px 16px;
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 0;
  gap: 8px;
}

.step {
  text-align: center;
  position: relative;
  flex: 1;
}

.circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #b1b4b6;
  color: white;
  line-height: 32px;
  margin: 0 auto 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.step.active .circle {
  background-color: #003078; /* ID-SK modrá */
}

.step.completed .circle {
  background-color: #00703c; /* zelená */
}

.stepper .label {
  font-size: 14px;
  line-height: 1.2;
  word-break: break-word;
}

.stepper .line {
  flex: 0 0 clamp(16px, 4vw, 50px);
  height: 3px;
  background-color: #b1b4b6;
  margin-top: 15px;
}

.step.completed + .line {
  background-color: #00703c;
}

.stepper-mobile-current {
  display: none;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

@media (max-width: 768px) {
  .stepper-container {
    margin: 16px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .stepper {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    width: auto;
  }

  .stepper::before {
    display: none;
  }

  .stepper .line {
    display: none;
  }

  .step {
    display: none;
  }

  .stepper-mobile-current {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #003078;
    white-space: nowrap;
    background: #e8f1fc;
    border: 1px solid #b3cde8;
    border-radius: 999px;
  }

  .step.active {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 72vw;
    text-align: left;
    padding: 4px 10px;
    border: 1px solid #d6d7d9;
    border-radius: 999px;
    background: #fff;
  }

  .step.active .circle {
    display: none;
  }

  .step.active .label {
    display: inline-block;
    font-size: 13px;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 56vw;
    line-height: 1.2;
  }

  .idsk-registration-for-event__form .govuk-button-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
  }

  .idsk-registration-for-event__form .govuk-button-group .govuk-button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    margin: 0 !important;
    white-space: nowrap;
  }

  .idsk-registration-for-event__form .govuk-button-group .govuk-\!-margin-left-3 {
    margin-left: 0 !important;
  }
}
