/* Partner Registration Form — visuals 1:1 with the homepage CF7 contact form */

.bshf-pf-wrap {
    font-family: var(--main-font, "Plus Jakarta Sans", sans-serif);
    color: var(--main-text-color, #233643);
}

.bshf-pf-form {
    display: block;
}

/* HTML [hidden] attribute must override our class-based display rules */
.bshf-pf-form[hidden],
.bshf-pf-loader[hidden],
.bshf-pf-success[hidden],
.bshf-pf-form-error[hidden] {
    display: none !important;
}

/* Layout: 2-up rows like CF7's .wrapper-fields p */
.bshf-pf-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.bshf-pf-row.bshf-pf-row-full {
    margin-bottom: 48px;
}
.bshf-pf-field {
    width: 48%;
    display: block;
}
.bshf-pf-row.bshf-pf-row-full .bshf-pf-field {
    width: 100%;
}

@media screen and (max-width: 720px) {
    .bshf-pf-row {
        flex-direction: column;
    }
    .bshf-pf-field {
        width: 100%;
        margin-bottom: 20px;
    }
    .bshf-pf-field:last-child {
        margin-bottom: 0;
    }
}

/* Label */
.bshf-pf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #90a3bf;
}
.bshf-pf-field .bshf-pf-req {
    color: #90a3bf;
    font-weight: 400;
}
.bshf-pf-field .bshf-pf-opt {
    color: #b6c0cd;
    font-weight: 400;
    font-size: 13px;
}

/* Inputs / textarea — exact match with homepage form */
.bshf-pf-field input[type="text"],
.bshf-pf-field input[type="email"],
.bshf-pf-field input[type="tel"],
.bshf-pf-field textarea {
    width: 100%;
    display: block;
    margin: 0;
    border-radius: 37px;
    padding: 12px 16px;
    height: 48px;
    background: #fafafa;
    font-family: var(--main-font, "Plus Jakarta Sans", sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #233643;
    border: none;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}
.bshf-pf-field textarea {
    height: 80px;
    font-style: normal;
}
.bshf-pf-field input::placeholder,
.bshf-pf-field textarea::placeholder {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #233643;
}

/* Telegram prefix — same surface as input */
.bshf-pf-tg-prefix {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fafafa;
    border-radius: 37px;
    padding: 0 16px;
    height: 48px;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}
.bshf-pf-tg-prefix > span {
    color: #233643;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    margin-right: 4px;
    user-select: none;
}
.bshf-pf-tg-prefix input {
    flex: 1 1 auto;
    border: none !important;
    background: transparent !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Validation states */
.bshf-pf-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #e63946;
}
.bshf-pf-field.has-error input,
.bshf-pf-field.has-error textarea,
.bshf-pf-field.has-error .bshf-pf-tg-prefix {
    /*background: #fff5f6;*/
}
.bshf-pf-field.has-error .bshf-pf-error {
    display: block;
}
.bshf-pf-form-error {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff5f6;
    color: #b21e30;
    font-size: 14px;
    line-height: 1.5;
}

/* Submit row + button — match wrapper-button + input on homepage */
.bshf-pf-submit-row {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.bshf-pf-submit {
    display: inline-block;
    padding: 11px 60px;
    border: 1px solid var(--main-action-color, #3563E9);
    border-radius: 150px;
    background: var(--main-action-color, #3563E9);
    color: var(--main-bg-color, #fff);
    font-family: var(--main-font, "Plus Jakarta Sans", sans-serif);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    cursor: pointer;
    transition: var(--main-transition, 0.5s all ease);
    box-shadow: none;
    outline: none;
}
.bshf-pf-submit:hover {
    background: var(--main-bg-color, #fff);
    color: var(--main-action-color, #3563E9);
}
.bshf-pf-submit:disabled,
.bshf-pf-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

@media screen and (max-width: 576px) {
    .bshf-pf-submit {
        width: 100%;
        padding: 12px 24px;
    }
    .bshf-pf-submit-row {
        flex-direction: column;
    }
}

.bshf-pf-loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #e4ebfc;
    border-top-color: var(--main-action-color, #3563E9);
    border-radius: 50%;
    animation: bshf-pf-spin 0.8s linear infinite;
}
@keyframes bshf-pf-spin {
    to { transform: rotate(360deg); }
}

/* Success state */
.bshf-pf-success {
    text-align: center;
    padding: 24px 8px;
}
.bshf-pf-success-icon {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
}
.bshf-pf-success-title {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 28px;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: var(--main-text-color, #233643);
}
.bshf-pf-success-text {
    margin: 0;
    font-weight: 400;
    font-size: 17px;
    line-height: 160%;
    color: var(--main-hover-link-color, #495c69);
}
