.bc-form-overlay,
.bc-form-overlay * {
    box-sizing: border-box;
}

.bc-form-overlay[hidden],
.bc-form-overlay [hidden] {
    display: none !important;
}

.bc-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

body.bc-form-open {
    overflow: hidden;
}

.bc-form-dialog {
    position: relative;
    width: 380px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    margin: auto;
    background: #f3f4f5;
    color: #777;
    border-radius: 6px;
    box-shadow: inset 0 0 18px rgba(100, 100, 100, 0.2),
                1px 1px 4px rgba(0, 0, 0, 0.8);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
}

.bc-form-title {
    margin: 0;
    padding: 10px 30px;
    background: #006B6E;
    color: #fff;
    font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
    border-radius: 6px 6px 0 0;
    overflow-wrap: anywhere;
}

.bc-form-close {
    position: absolute;
    top: 5px;
    right: 7px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
}

.bc-form-body {
    display: block;
    margin: 0;
    padding: 10px;
    text-align: center;
}

.bc-form-field {
    margin: 0 0 10px;
}

.bc-form-dialog input[type="text"],
.bc-form-dialog input[type="tel"],
.bc-form-dialog input[type="number"] {
    display: block;
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 0 7px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fefefe;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: normal;
    box-shadow: none;
}

.bc-form-dialog input::placeholder {
    color: #999;
    opacity: 1;
}

.bc-form-dialog input:focus {
    background: #fff;
    border-color: #006B6E;
    outline: 1px solid #006B6E;
}

.bc-form-email {
    margin: 2px 0 12px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.bc-form-consent {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin: 12px 0 10px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-align: left;
}

.bc-form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    margin: 2px 0 0;
    cursor: pointer;
}

.bc-form-dialog a {
    color: #df702d;
    text-decoration: underline;
}

.bc-form-submit {
    display: inline-block;
    margin: 0;
    padding: 7px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f6f6f6;
    color: #006B6E;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 16px;
    cursor: pointer;
}

.bc-form-submit:hover {
    background: #fdf5ce;
    color: #c77405;
    border-color: #fbcb09;
}

.bc-form-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.bc-form-message {
    margin: 12px 0 5px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.bc-form-message.bc-success {
    color: #006B6E;
}

.bc-form-message.bc-error {
    color: #b51c35;
}

.bc-form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bc-form-dialog :focus-visible {
    outline: 2px solid #006B6E;
    outline-offset: 2px;
}

.bc-form-close:focus-visible {
    outline-color: #fff;
}

@media (max-width: 480px) {
    .bc-form-overlay {
        padding: 10px;
    }

    .bc-form-dialog {
        width: 100%;
    }

    .bc-form-title {
        font-size: 18px;
        line-height: 1.4;
    }

    .bc-form-dialog input[type="text"],
    .bc-form-dialog input[type="tel"],
    .bc-form-dialog input[type="number"] {
        height: 40px;
        font-size: 16px;
    }

    .bc-form-consent,
    .bc-form-email {
        font-size: 14px;
    }

    .bc-form-submit {
        min-height: 40px;
        font-size: 16px;
    }

    .bc-form-close {
        font-size: 28px;
    }
}

.bc-form-submit:disabled.bc-sending {
    cursor: wait;
}
