.rf-no-scroll {
    overflow: hidden;
}

.rf-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.rf-modal.is-open {
    display: block;
}

.rf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.rf-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 92%;
    height: 88vh;
    overflow-y: scroll;
    margin: 5vh auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    border: 4px solid var(--wp--preset--color--fiolet);
    box-sizing: border-box;
}

/* Firefox */
.rf-modal__dialog {
  scrollbar-width: auto;                          /* thin | auto | none */
  scrollbar-color: rgba(0,0,0,.45) transparent;   /* kciuk | tło toru (przezroczyste) */
}

/* WebKit (Chrome/Edge/Safari) */
.rf-modal__dialog::-webkit-scrollbar {
  width: 12px;                 /* szerokość paska (pion) */
  height: 12px;                /* wysokość paska (poziom) */
  background: transparent;     /* tło toru – przezroczyste */
}

.rf-modal__dialog::-webkit-scrollbar-track {
  background: transparent;     /* tor – przezroczysty */
}

.rf-modal__dialog::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,.45); /* kolor kciuka */
  border-radius: 999px;               /* “pill” */
  border: 3px solid transparent;      /* optyczny padding */
  background-clip: content-box;
}

/* hover/active – opcjonalnie delikatne wzmocnienie */
.rf-modal__dialog::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,.6);
}
.rf-modal__dialog::-webkit-scrollbar-thumb:active {
  background-color: rgba(0,0,0,.75);
}

/* usuwa strzałki (przyciski) w WebKit */
.rf-modal__dialog::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* róg przy jednoczesnym przewijaniu X i Y – też przezroczysty */
.rf-modal__dialog::-webkit-scrollbar-corner {
  background: transparent;
}

.rf-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

#rf-form .rf-row{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
    gap: 0 24px;
}

#rf-form .rf-field {
    margin-bottom: 20px;
    box-sizing: border-box;
}

#rf-form .rf-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

#rf-form .rf-field input[type="text"],
#rf-form .rf-field input[type="url"],
#rf-form .rf-field input[type="file"],
#rf-form .rf-field select,
#rf-form .rf-field textarea {
    width: 100%;
    padding: 14px 30px;
    border: 1px solid #16161620;
    border-radius: 20px;
    box-sizing: border-box;
    font-family: var(--wp--preset--font-family--raleway);
    outline: none;
    resize: none;
}

#rf-form .rf-field input[type="text"]:focus,
#rf-form .rf-field input[type="url"]:focus,
#rf-form .rf-field input[type="file"]:focus,
#rf-form .rf-field select:focus,
#rf-form .rf-field textarea:focus{
  border-color: #9F66F0;
  box-shadow: 0 0 0 2px rgba(159, 102, 240, 0.3);
}

#rf-form .rf-file{
    margin-top: 12px;
}

#rf-form .rf-checkboxes,
#rf-form .rf-radios{
    display: flex;
    margin-top: 12px;
}

#rf-form .rf-checkboxes label,
#rf-form .rf-radios label {
    margin-right: 16px;
}

#rf-form .rf-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

#rf-form .rf-error {
    margin-top: 6px;
    color: #b00020;
    font-size: 12px;
}

#rf-form .rf-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
	flex-wrap: wrap;
}

@media (max-width: 781px){
  #rf-form .rf-actions {
    justify-content: center;
  }
}

.rf-recruitment-block * {
  font-size: 12px !important;
  font-weight: 500;
}

.rf-recruitment-block strong{
    font-weight: 600;
}

.rf-recruitment-block a{
    text-decoration: underline;
}