/* Merged from example.css and inline styles */
:root {
    --main-bg-color: #fff;
    --main-action-color: #3563E9;
    --main-text-color: #233643;
    --main-link-color: #0f1f2c;
    --main-hover-link-color: #495c69;
    --main-transition: 0.5s all ease;
    --main-font: "Plus Jakarta Sans", sans-serif;
    
    --color-background-primary: #fff;
    --color-background-secondary: #fafafa;
    --color-background-tertiary: #f0f4f8;
    --color-background-info: #e6f0fa;
    --color-background-danger: #fbeaea;
    --color-text-primary: #233643;
    --color-text-secondary: #495c69;
    --color-text-tertiary: #90a3bf;
    --color-text-info: #3563E9;
    --color-text-danger: #E24B4A;
    --color-border-primary: #3563E9;
    --color-border-secondary: #d1d5db;
    --color-border-tertiary: #e2e8f0;
    --color-border-info: #93c5fd;
    --color-border-danger: #fca5a5;
    --border-radius-md: 8px;
    --border-radius-lg: 24px;
    --font-sans: "Plus Jakarta Sans", sans-serif;
}

.bshf-form-wrap * { box-sizing: border-box; }
.bshf-form-wrap { padding: 48px; max-width: 672px; font-family: var(--font-sans); margin: 0 auto; color: var(--color-text-primary); background: #fff; border-radius: var(--border-radius-lg); box-shadow: 0 30px 84px 0 #e4ebfc; }
.bshf-section { padding: 0; margin-bottom: 0; border: none; background: transparent; }
.bshf-section-title { font-weight: 700; font-size: 24px; line-height: 122%; letter-spacing: -0.02em; color: var(--main-text-color); margin-bottom: 24px; text-transform: none; border-bottom: none; text-align: center; }
.bshf-field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; }
.bshf-field-row.full { grid-template-columns: 1fr; }
.bshf-field-row.triple { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bshf-field { display: flex; flex-direction: column; gap: 5px; }

/* Styles from example.css for label and inputs */
.bshf-field label {
    display: block;
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #90a3bf;
    margin-bottom: 0;
}
.bshf-field input:not([type="checkbox"]):not([type="radio"]), .bshf-field select {
    width: 100%;
    display: block;
    margin-top: 6px;
    border-radius: 37px;
    padding: 12px 16px;
    height: 48px;
    background: #fafafa;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #233643;
    border: 1px solid transparent;
    outline: none;
    box-shadow: none;
    transition: var(--main-transition);
}
.bshf-field textarea {
    width: 100%;
    display: block;
    margin-top: 6px;
    border-radius: 37px;
    padding: 12px 16px;
    height: 80px;
    background: #fafafa;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #233643;
    border: 1px solid transparent;
    outline: none;
    box-shadow: none;
    font-style: normal;
    resize: vertical;
    transition: var(--main-transition);
}
.bshf-field input:focus, .bshf-field select:focus, .bshf-field textarea:focus { border-color: var(--color-border-primary); background: var(--color-background-primary); }

/* Select2 Custom Styles */
.bshf-form-wrap .select2-container--default .select2-selection--single {
    background-color: #fafafa;
    border: 1px solid transparent;
    border-radius: 37px;
    height: 48px;
    transition: var(--main-transition);
}
.bshf-form-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #233643;
    line-height: 46px;
    padding-left: 16px;
    padding-right: 30px;
    font-size: 16px;
}
.bshf-form-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #233643;
    opacity: 0.6;
}
.bshf-form-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
}
.bshf-form-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.bshf-form-wrap .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--color-border-primary);
    background-color: var(--color-background-primary);
    outline: none;
}
.bshf-form-wrap .select2-dropdown {
    border: 1px solid var(--color-border-tertiary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
}
.bshf-form-wrap .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--color-border-tertiary);
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
}
.bshf-form-wrap .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--main-action-color);
}
.bshf-form-wrap .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--color-background-info);
    color: var(--color-text-info);
}
.bshf-field.has-error .select2-container--default .select2-selection--single {
    border-color: var(--color-text-danger);
}

.bshf-field input::placeholder, .bshf-field textarea::placeholder { font-weight: 400; font-size: 16px; line-height: 150%; color: #233643; }

.bshf-req { color: #E24B4A; margin-left: 2px; }
.bshf-opt { font-weight: 400; color: var(--color-text-tertiary); font-size: 11px; margin-left: 4px; }
.bshf-hint { font-size: 11px; color: var(--color-text-tertiary); margin-top: 2px; padding-left: 10px; }
.bshf-multi-check { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.bshf-multi-check label { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 400; color: var(--color-text-primary); cursor: pointer; background: var(--color-background-secondary); border: 1px solid var(--color-border-tertiary); border-radius: 37px; padding: 10px 16px; transition: border-color 0.15s, background 0.15s; margin-bottom: 0; }
.bshf-multi-check label:hover { border-color: var(--color-border-secondary); }
.bshf-multi-check input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--main-action-color); margin: 0; }
.bshf-multi-check label:has(input:checked) { border-color: var(--color-border-info); background: var(--color-background-info); }
.bshf-multi-check label:has(input:checked) span { color: var(--color-text-info); font-weight: 500; }
.bshf-radio-group { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.bshf-radio-group label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-text-primary); cursor: pointer; background: var(--color-background-secondary); border: 1px solid var(--color-border-tertiary); border-radius: 37px; padding: 10px 16px; transition: all 0.15s; margin-bottom: 0; }
.bshf-radio-group label:hover { border-color: var(--color-border-secondary); }
.bshf-radio-group input[type=radio] { width: 16px; height: 16px; accent-color: var(--main-action-color); margin: 0; }
.bshf-radio-group label:has(input:checked) { border-color: var(--color-border-info); background: var(--color-background-info); color: var(--color-text-info); font-weight: 500; }

.bshf-conditional { display: none; margin-top: 10px; padding: 16px; background: var(--color-background-tertiary); border-radius: var(--border-radius-lg); border-left: 2px solid var(--color-border-info); }
.bshf-conditional.visible { display: block; }
.bshf-other-expand { display: none; margin-top: 8px; }
.bshf-other-expand.visible { display: block; }

.bshf-ubo-block { border: 1px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 24px; margin-bottom: 16px; position: relative; background: #fff; }
.bshf-ubo-label { font-size: 16px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 16px; }
.bshf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 10px 20px; border: 1px solid var(--color-border-secondary); border-radius: 37px; background: transparent; color: var(--color-text-primary); cursor: pointer; font-family: var(--font-sans); transition: var(--main-transition); }
.bshf-btn:hover { background: var(--color-background-secondary); }
.bshf-add-btn { margin-top: 4px; }
.bshf-remove-btn { position: absolute; top: 16px; right: 16px; font-size: 12px; color: var(--color-text-danger); background: none; border: 1px solid var(--color-border-danger); border-radius: 37px; cursor: pointer; padding: 4px 12px; font-family: var(--font-sans); transition: var(--main-transition); }
.bshf-remove-btn:hover { background: var(--color-background-danger); }

/* Buttons */
.bshf-submit-row { display: flex; justify-content: space-between; margin-top: 2rem; align-items: center; gap: 15px; }
.bshf-submit-btn, .bshf-btn-next, .bshf-btn-prev { padding: 11px 60px; font-size: 16px; font-weight: 600; border-radius: 150px; cursor: pointer; font-family: var(--font-sans); transition: var(--main-transition); text-decoration: none; display: inline-block; box-shadow: none; outline: none; }

.bshf-submit-btn, .bshf-btn-next { background: var(--main-action-color); color: var(--main-bg-color); border: 1px solid var(--main-action-color); }
.bshf-submit-btn:hover, .bshf-btn-next:hover { background: var(--main-bg-color); color: var(--main-action-color); }
.bshf-submit-btn:disabled, .bshf-btn-next:disabled { opacity: 0.7; cursor: not-allowed; }

.bshf-btn-prev { background: transparent; color: var(--main-action-color); border: 1px solid var(--main-action-color); }
.bshf-btn-prev:hover { background: var(--main-action-color); color: var(--main-bg-color); }

.bshf-field-note { font-size: 12px; color: var(--color-text-tertiary); background: var(--color-background-secondary); border-radius: var(--border-radius-md); padding: 10px 16px; margin-top: 8px; border-left: 2px solid var(--color-border-secondary); }
.bshf-section-note { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 20px; text-align: center; }

.bshf-tg-prefix { display: flex; align-items: stretch; }
.bshf-tg-prefix span { display:flex; align-items:center; font-size: 16px; color: var(--color-text-secondary); background: #fafafa; border: 1px solid transparent; border-right: none; border-radius: 37px 0 0 37px; padding: 0 16px; white-space: nowrap; margin-top: 6px; }
.bshf-tg-prefix input { border-radius: 0 37px 37px 0 !important; border-left: 0; }

.bshf-error-msg { color: var(--color-text-danger); font-size: 12px; margin-top: 4px; display: none; padding-left: 10px; }
.bshf-field.has-error input:not([type="checkbox"]):not([type="radio"]), .bshf-field.has-error select, .bshf-field.has-error textarea, .bshf-field.has-error .bshf-tg-prefix span { border-color: var(--color-border-danger); }
.bshf-field.has-error .bshf-error-msg { display: block; }
.bshf-field.has-error label { color: var(--color-text-danger); }

.bshf-urls-container { display: flex; flex-direction: column; gap: 8px; }
.bshf-url-row { display: flex; gap: 8px; align-items: center; }
.bshf-url-row input { flex: 1; }

.bshf-loader { display: none; width: 20px; height: 20px; border: 2px solid var(--main-action-color); border-bottom-color: transparent; border-radius: 50%; box-sizing: border-box; animation: bshf-rotation 1s linear infinite; }
.bshf-loader.visible { display: inline-block; }
@keyframes bshf-rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.bshf-success-message { display: none; background: #e6fcf5; border: 1px solid #69dbaf; color: #0ca678; padding: 30px; border-radius: var(--border-radius-lg); text-align: center; font-weight: 500; font-size: 16px; margin-top: 20px; }
.bshf-success-message.visible { display: block; }

/* Progress Bar / Pagination */
.bshf-progress-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; position: relative; padding: 0 10px; }
.bshf-progress-bar::before { content: ''; position: absolute; top: 50%; left: 10px; right: 10px; height: 2px; background: var(--color-border-tertiary); transform: translateY(-50%); z-index: 1; }
.bshf-progress-step { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--color-border-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--color-text-tertiary); z-index: 2; position: relative; transition: var(--main-transition); }
.bshf-progress-step.active { border-color: var(--main-action-color); color: var(--main-action-color); box-shadow: 0 0 0 4px rgba(53, 99, 233, 0.1); }
.bshf-progress-step.completed { background: var(--main-action-color); color: #fff; border-color: var(--main-action-color); }

.bshf-step-content { display: none; animation: fadeIn 0.5s; }
.bshf-step-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 576px) {
    .bshf-form-wrap { padding: 20px; }
    .bshf-field-row, .bshf-field-row.triple { grid-template-columns: 1fr; }
    .bshf-submit-btn, .bshf-btn-next, .bshf-btn-prev { padding: 11px 30px; }
    .bshf-progress-step { width: 30px; height: 30px; font-size: 12px; }
}
