/* =============================================================
   DK Prijavnica — standalone form styles
   ============================================================= */

/* --- Wrapper / section --- */
.prijavnica {
  padding-top: 48px;
  padding-bottom: 70px;
  border-top: 1px solid #000;
}

.prijavnica__heading {
  margin-bottom: 40px;
}

/* --- Required indicator --- */
.prijavnica__required {
  color: #bb1e10;
  text-decoration: none;
  font-style: normal;
  margin-left: 2px;
}

.prijavnica__required-note {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 14px;
  color: #787878;
  margin-top: -24px;
  margin-bottom: 40px;
}

/* --- Notices (success / error) --- */
.prijavnica__notice {
  padding: 20px 24px;
  margin-bottom: 32px;
}

.prijavnica__notice--success {
  background-color: #fff799;
  text-align: center;
}

.prijavnica__notice--error {
  background-color: #ffe2e2;
}

/* --- Fieldsets & legends --- */
.prijavnica__fieldset {
  border: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.prijavnica__legend {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #303030;
  padding: 0 0 8px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #000;
  display: block;
  width: 100%;
}

/* --- Grid rows --- */
.prijavnica__row {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.prijavnica__row--2col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
  .prijavnica__row--2col {
    grid-template-columns: 1fr;
  }
}

/* --- Individual field --- */
.prijavnica__field {
  display: flex;
  flex-direction: column;
}

/* --- Labels --- */
.prijavnica__label {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 16px;
  color: #787878;
  margin-bottom: 6px;
  display: block;
}

/* --- Text / email / tel / date inputs --- */
.prijavnica__input {
  background: #efefef;
  border: 2px solid transparent;
  outline: none;
  padding: 14px 16px;
  height: 60px;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 768px) {
  .prijavnica__input {
    height: 80px;
    font-size: 20px;
  }
}

.prijavnica__input:focus {
  border-color: #5cab49;
}

.prijavnica__input[aria-invalid="true"] {
  border-color: #bb1e10;
}

.prijavnica__input::selection {
  background: #6db75b;
}

/* File input */
.prijavnica__input--file {
  height: auto;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
}

/* --- Hint / description text --- */
.prijavnica__hint {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #787878;
  margin-top: 6px;
}

/* --- Checkbox group fieldset --- */
.prijavnica__fieldset--checkboxes {
  margin-bottom: 24px;
}

.prijavnica__legend--sm {
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
  padding-bottom: 0;
  color: #787878;
  margin-bottom: 16px;
}

.prijavnica__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Custom checkbox --- */
.prijavnica__field--checkbox {
  position: relative;
}

.prijavnica__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.prijavnica__checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.prijavnica__field--checkbox:hover .prijavnica__checkmark,
.prijavnica__field--consent:hover .prijavnica__checkmark {
  background: #ddd;
}

.prijavnica__checkbox:checked ~ .prijavnica__label .prijavnica__checkmark {
  background: #5cab49;
}

.prijavnica__checkbox[type="radio"]:checked ~ .prijavnica__label .prijavnica__checkmark::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
}

.prijavnica__checkbox[type="checkbox"]:checked ~ .prijavnica__label .prijavnica__checkmark::after {
  content: "";
  display: block;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-1px);
}

.prijavnica__checkbox:focus-visible ~ .prijavnica__label .prijavnica__checkmark {
  outline: 2px solid #5cab49;
  outline-offset: 2px;
}

.prijavnica__label--checkbox {
  position: relative;
  display: block;
  padding-left: 58px;
  min-height: 42px;
  line-height: 42px;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 20px;
  color: #303030;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

/* --- Consent --- */
.prijavnica__field--consent {
  position: relative;
  margin-bottom: 32px;
}

.prijavnica__label--consent {
  position: relative;
  display: block;
  padding-left: 58px;
  min-height: 42px;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 16px;
  color: #787878;
  line-height: 1.7;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.prijavnica__label--consent strong {
  font-family: 'Space Mono', 'Courier New', monospace !important;
  font-size: 20px !important;
  color: #000;
}

.prijavnica__label--consent a {
  color: #303030;
}

/* --- hCaptcha --- */
.prijavnica__captcha {
  margin-bottom: 24px;
}

/* --- Submit button — match .btn-sm sizing used by the CTA --- */
.prijavnica .btn {
  font-size: 24px;
  line-height: 28px;
  padding: 11px 22px;
}

/* --- CTA button above content --- */
.prijavnica-cta {
  position: relative;
  padding-top: 20px;
  padding-bottom: 20px;
}

.prijavnica-cta::before {
  content: "";
  display: block;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% * (10 / 11));
  background-image: linear-gradient(to right, #000 25%, rgba(255, 255, 255, 0) 0%);
  background-position: top;
  background-size: 4px 1px;
  background-repeat: repeat-x;
}
