/* ============================================
   bakertillyForm — styles
   ============================================ */

@font-face {
    font-family: 'Arial MT Pro';
    src: url('../fonts/ArialMTPro-400.woff') format('woff'),
    url('../fonts/ArialMTPro-400.otf')  format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arial MT Pro';
    src: url('../fonts/ArialMTPro-500.woff') format('woff'),
    url('../fonts/ArialMTPro-500.otf')  format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arial MT Pro';
    src: url('../fonts/ArialMTPro-700.woff') format('woff'),
    url('../fonts/ArialMTPro-700.otf')  format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Użycie w formularzu
   ============================================ */

.bakertillyForm,
.bakertillyForm__title,
.bakertillyForm__label,
.bakertillyForm__stepIndicator,
.bakertillyForm__legend,
.bakertillyForm__checkboxTile,
.bakertillyForm__consentText,
.bakertillyForm__attachNote {
    font-family: 'Arial MT Pro', Arial, sans-serif;
}

.bakertillyForm {
    max-width: 700px;
    background: #ffffff;
    border: 1px solid #00bab3;
    border-radius: 72px;
    padding: 68px 60px 58px;
    margin: 0 auto 100px;
}

/* Title */
.bakertillyForm__title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    line-height: 40px;
}

/* Intro text */
.bakertillyForm__intro {
    font-size: 12px;
    color: #000;
    line-height: 18px;
    margin-bottom: 26px;
}

/* Step indicator */
.bakertillyForm__steps {
    text-align: right;
    margin-bottom: 24px;
    padding: 0 25px;
}

.bakertillyForm__stepIndicator {
    font-size: 13px;
    font-weight: 700;
    color: #000;
}

/* Two-column row */
.bakertillyForm__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
    padding: 0 24px;
}

.bakertillyForm__input {
    max-height: 34px;
    border: 2px solid #d9d9d9 !important;
}

/* Single field */
.bakertillyForm__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 52px;
}

.bakertillyForm__label {
    font-size: 12px;
    font-weight: 400;
    color: #333;
    line-height: 12px;
}

.bakertillyForm__required {
    color: #000;
}

.bakertillyForm__input {
    height: 40px;
    border: 1px solid #c8d0d4;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.bakertillyForm__input.bakertillyForm__input--error {
    border-color: #e53e3e;
}

/* Error messages */
.bakertillyForm__error {
    font-size: 12px;
    color: #e53e3e;
    min-height: 16px;
    display: none;
}

/* Fieldset — checkbox area */
.bakertillyForm__fieldset {
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    background-color: #f8f8f9;
}

.bakertillyForm__fieldsetStep {
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    background-color: #f8f8f9;
}

.bakertillyForm__legend {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    color: #000;
}

/* ============================================
   Checkbox grid
   ============================================ */

.bakertillyForm__checkboxGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-top: 16px;
}

/* zmień na */
.bakertillyForm__checkboxLabel {
    display: block;
    position: static;
    vertical-align: unset;
    cursor: pointer;
    width: 100%;
}

/* Hide native checkbox */
.bakertillyForm__checkboxInput {
    display: none;
}

/* Tile */
.bakertillyForm__checkboxTile {
    cursor: pointer;
    padding: 5px 16px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    background: #fff;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
    min-height: 34px;
    font-weight: 400;
    line-height: 16px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.bakertillyForm__checkboxInput:checked + .bakertillyForm__checkboxTile {
    background: #00bab3;
    border-color: #00bab3;
    color: #000;
    font-weight: 400;
}

.bakertillyForm__checkboxLabel:hover .bakertillyForm__checkboxTile {
    border-color: #00bab3;
}

/* ============================================
   Consent
   ============================================ */

.bakertillyForm__consentWrapper {
    margin: 20px 0 24px;
}

.bakertillyForm__consentLabel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

/* Custom consent checkbox */
.bakertillyForm__consentInput {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
}

.bakertillyForm__consentInput:hover {
    border-color: #CCCCCC;
}

.bakertillyForm__consentInput:checked {
    border-color: #CCCCCC;
}
.bakertillyForm__fieldsetBox{
    padding-bottom: 24px;
    border-bottom: 1px solid #d9d9d9;
}
.bakertillyForm__consentInput:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #00bab3;
    border-bottom: 2px solid #00bab3;
    transform: rotate(45deg);
}

.bakertillyForm__consentText {
    font-size: 10px;
    color: #000;
    line-height: 16px;
}

.bakertillyForm__consentText .bakertillyForm__infoBtn {
    background: none;
    border: none;
    color: #00bab3;
    font-size: 14px;
    cursor: pointer;
    vertical-align: middle;
    padding: 0;
    background-color: transparent;
    min-width: initial;
    line-height: 0;
}
.bakertillyForm__consentText .bakertillyForm__infoBtn:hover {
    background-color: transparent;
}
.bakertillyForm__consentText .bakertillyForm__infoBtn:focus {
    background-color: transparent;
}
.bakertillyForm__consentText .bakertillyForm__infoBtn img{
    width: 16px;
}

.bakertillyForm__consentNote {
    font-size: 10px;
    color: #e53e3e;
    margin-top: 10px;
    margin-left: 26px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* ============================================
   Actions
   ============================================ */

.bakertillyForm__actions {
    display: flex;
    justify-content: flex-end;
}

.bakertillyForm__actions .bakertillyForm__btnSubmit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00bab3;
    color: #000;
    border: none;
    border-radius: 34px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    min-width: initial;
    max-height: 34px;
    justify-content: space-between;
    font-size: 12px;
    font-family: 'Arial MT Pro', Arial, sans-serif;
}

.bakertillyForm__actions .bakertillyForm__btnSubmit:hover {
    background: #CCCCCC;
    color: #000;
}
.bakertillyForm__actions .bakertillyForm__btnSubmit:focus {
    background: #CCCCCC;
    color: #000;
}

.bakertillyForm__actions .bakertillyForm__btnSubmit:active {
    transform: scale(0.98);
}

.bakertillyForm__btnIcon {
    width: 18px;
    height: 18px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 540px) {
    .bakertillyForm {
        padding: 28px 20px;
    }

    .bakertillyForm__row,
    .bakertillyForm__checkboxGrid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   btfPopup — styles
   ============================================ */

.btfPopup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.btfPopup:not([hidden]) {
    display: flex;
}

/* Overlay */
.btfPopup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* Box */
.btfPopup__box {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 8px solid #00bab3;
    border-radius: 8px;
    padding: 30px 40px;
    max-width: 640px;
    width: calc(100% - 32px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Close button */
.btfPopup__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.btfPopup__close:hover {
    color: #333;
}

/* Content */
.btfPopup__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btfPopup__content p {
    font-size: 10px;
    color: #000;
    line-height: 16px;
    margin: 0;
}

/* Links */
.btfPopup__link {
    color: #000;
    text-decoration: underline;
    word-break: break-all;
}

.btfPopup__link:hover {
    text-decoration: underline;
}
.bakertillyForm__fieldsetHeader{
    margin-top: 24px;
    position: relative;
    display: flex;
    flex-direction: row;
}
.bakertillyForm__fieldsetNumber{
    border-radius: 99px;
    background-color: #00bab3;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #000;
    font-weight: 600;
    margin: 0;
    padding: 13px;
}
.bakertillyForm__fieldsetTitle{
    margin-left: 12px;
    font-size: 14px;
    color: #000;
    font-weight: 600;
    line-height: 18px;
    display: flex;
    align-items: center;
}
.bakertillyForm__input:focus {
    border-color: #00bab3 !important;
}
.bakertillyForm__fieldsetTitleBottom{
    font-size: 14px;
    color: #000;
    font-weight: 600;
    line-height: 18px;
    display: flex;
    align-items: center;
}
.bakertillyForm__fieldsetHeader .bakertillyForm__removeButton{
    background-color: #00bab3;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
}
.bakertillyForm__fieldsetHeader .bakertillyForm__removeButton:hover{
    background-color: #00bab3;
}
.bakertillyForm__fieldsetHeader .bakertillyForm__removeButton:focus{
    background-color: #00bab3;
}
.bakertillyForm__fieldsetHeader .bakertillyForm__removeButton img{
    background-color: #00bab3;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    padding: 0;
}
.bakertillyForm__fieldsetDescription{
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #000;
    margin-left: 39px;
    line-height: 16px;
    margin-right: 30px;
}
.bakertillyForm__fieldsetDescriptionTwo{
    display: block;
    margin-top: 24px;
    font-size: 12px;
    color: #000;
    line-height: 16px;
    margin-right: 30px;
}
.bakertillyForm__textareaBox{
    margin-top: 20px;
}
.bakertillyForm__textareaBox textarea{
    min-height: 110px;
    border: 2px solid #d9d9d9 !important;
    border-radius: 6px;
}
.bakertillyForm__textareaBox textarea:focus{
    min-height: 110px;
    border: 2px solid #00bab3 !important;
}

.bakertillyForm__attachRow {
    display: flex;
    align-items: start;
    gap: 16px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
    flex-direction: row;
}

.bakertillyForm__attachRow .bakertillyForm__attachBtn {
    background: #00bab3;
    color: #000;
    border: none;
    border-radius: 34px;
    padding: 0 15px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    min-width: initial;
    max-width: 140px;
    max-height: 34px;
    display: flex;
    align-items: center;
    text-align: center;
    font-family: 'Arial MT Pro', Arial, sans-serif;
}

.bakertillyForm__attachRow .bakertillyForm__attachBtn:hover {
    background: #CCCCCC;
    color: #000;
}
.bakertillyForm__attachRow .bakertillyForm__attachBtn:focus {
    background: #CCCCCC;
    color: #000;
}

.bakertillyForm__attachRow .bakertillyForm__attachBtn:active {
    transform: scale(0.98);
}

.bakertillyForm__attachBtn:hover,
.bakertillyForm__attachBtn:focus {
    background: #00bab3;
    color: #000;
}

.bakertillyForm__fileList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.bakertillyForm__fileItem {
    justify-content: space-between;
    background: #f0f0f0;
    padding: 0px 12px 0px 24px;
    min-width: 0;
    max-height: 34px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #000;
    font-weight: 500;
}
.bakertillyForm__attachments{
    margin-top: 24px;
}
.bakertillyForm__fileItem::after {
    display: none;
}

.bakertillyForm__fileName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.bakertillyForm__fileItem .bakertillyForm__fileRemove {
    background: #00bab3;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    min-width: initial;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    justify-content: center;
}

.bakertillyForm__fileItem .bakertillyForm__fileRemove:hover,
.bakertillyForm__fileItem .bakertillyForm__fileRemove:focus {
    background: none;
}

.bakertillyForm__fileItem .bakertillyForm__fileRemove img {
    width: 18px;
    height: 18px;
}

.bakertillyForm__attachNote {
    font-size: 10px;
    color: #000;
    line-height: 16px;
    margin: 0;

}
.bakertillyForm__checkboxList{
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-direction: column;
}

.bakertillyForm__radioLabel {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bakertillyForm__radioInput {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    border: 2px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transition: border-color 0.15s;
}

.bakertillyForm__radioInput:checked {
    border-color: #00bab3;
}

.bakertillyForm__radioInput:checked::after {
    content: '';
    display: block;
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00bab3;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bakertillyForm__radioTile {
    font-size: 12px;
    color: #000;
    cursor: pointer;
    line-height: 14px;
    font-weight: 400;
}

.bakertillyForm__radioLabel:hover .bakertillyForm__radioInput {
    border-color: #00bab3;
}

.btfSelect {
    position: relative;
    width: 100%;
    font-family: 'Arial MT Pro', Arial, sans-serif;
    font-size: 12px;
}

.bakertillyForm__checkboxSelect .btfSelect__trigger {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    height: 34px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    font-family: 'Arial MT Pro', Arial, sans-serif;
    text-align: left;
    min-width: initial;
    transition: border-color 0.15s;
}

.bakertillyForm__checkboxSelect .btfSelect__trigger:hover,
.bakertillyForm__checkboxSelect .btfSelect__trigger:focus {
    border-color: #00bab3;
    background: #fff;
    color: #333;
}

.bakertillyForm__checkboxSelect .btfSelect--open .btfSelect__trigger {
    border-color: #00bab3;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #fff;
    color: #333;
}

.btfSelect__arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btfSelect--open .btfSelect__arrow {
    transform: rotate(180deg);
}

.btfSelect__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #00bab3;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    margin: 0;
    padding: 4px 0;
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btfSelect--open .btfSelect__list {
    display: block;
}

.btfSelect__option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    line-height: 18px;
    transition: background 0.1s;
}

.btfSelect__option:after {
    display: none;
}

.btfSelect__option:hover {
    background: #f0fafa;
    color: #00bab3;
}

.btfSelect__option--selected {
    color: #00bab3;
    font-weight: 600;
}


.btfSelect__value--chosen {
    color: #333;
}
.btfSelect__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

#bakertillyFormMain .btfSelect {
    max-width: 518px;
}
.bakertillyForm__checkboxSelect {
    margin-top: 16px;
}