.btru-contact-sync,
.btru-contact-sync * {
    box-sizing: border-box;
}

.btru-contact-sync {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    font: inherit;
    color: inherit;
}

.btru-contact-sync__form {
    display: block;
    width: 100%;
}

.btru-contact-sync__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.btru-contact-sync__field {
    margin: 0 0 18px;
}

.btru-contact-sync__field > label {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

.btru-contact-sync__field input[type="text"],
.btru-contact-sync__field input[type="email"],
.btru-contact-sync__field input[type="tel"],
.btru-contact-sync__field textarea {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
    appearance: none;
}

.btru-contact-sync__field textarea {
    min-height: 120px;
    resize: vertical;
}

.btru-contact-sync__field input:focus,
.btru-contact-sync__field textarea:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .15);
}

.btru-contact-sync__consent {
    margin: 4px 0 18px;
}

.btru-contact-sync__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: .9em;
    line-height: 1.5;
    cursor: pointer;
}

.btru-contact-sync__checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
}

.btru-contact-sync__keyword {
    margin: 7px 0 0 28px;
    font-size: .84em;
    opacity: .75;
}

.btru-contact-sync__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 11px 22px;
    border: 0;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.btru-contact-sync__submit:hover,
.btru-contact-sync__submit:focus {
    opacity: .9;
}

.btru-contact-sync__submit:disabled {
    opacity: .6;
    cursor: wait;
}

.btru-contact-sync__message {
    display: none;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 6px;
    font-size: .95em;
    line-height: 1.45;
}

.btru-contact-sync__message.is-success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.btru-contact-sync__message.is-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btru-contact-sync__hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

@media (max-width: 640px) {
    .btru-contact-sync__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* BTRU Contact Sync v1.1 visual refinements */
.btru-contact-sync__required {
    color: #dc3545;
    font-weight: 700;
}

.btru-contact-sync__field input::placeholder,
.btru-contact-sync__field textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.btru-contact-sync__turnstile {
    margin: 2px 0 20px;
    min-height: 65px;
}

.btru-contact-sync .btru-contact-sync__submit {
    background: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff;
    box-shadow: 0 2px 5px rgba(13, 110, 253, .18);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btru-contact-sync .btru-contact-sync__submit:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(13, 110, 253, .26);
}

.btru-contact-sync .btru-contact-sync__submit:focus {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(49, 132, 253, .28);
}

.btru-contact-sync .btru-contact-sync__submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(13, 110, 253, .2);
}

/* BTRU Contact Sync v1.2 public form polish */
.btru-contact-sync { max-width: 780px; }
.btru-contact-sync__form { padding: 30px; border: 1px solid #e7ebf0; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.btru-contact-sync__intro { display:flex; align-items:center; gap:13px; margin:0 0 27px; padding-bottom:22px; border-bottom:1px solid #edf0f4; }
.btru-contact-sync__intro-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:12px; background:#eff6ff; color:#0d6efd; font-size:18px; font-weight:800; }
.btru-contact-sync__intro h3 { margin:0 0 3px; color:#111827; font:inherit; font-size:1.18em; font-weight:750; line-height:1.25; }
.btru-contact-sync__intro p { margin:0; color:#64748b; font:inherit; font-size:.91em; line-height:1.45; }
.btru-contact-sync__field { margin-bottom:20px; }
.btru-contact-sync__field > label { margin-bottom:8px; font-size:.94em; font-weight:650; color:#334155; }
.btru-contact-sync__field input[type="text"],
.btru-contact-sync__field input[type="email"],
.btru-contact-sync__field input[type="tel"],
.btru-contact-sync__field textarea { min-height:52px; padding:13px 15px; border-color:#d7dee7; border-radius:9px; background:#fff; font-size:16px; box-shadow:0 1px 2px rgba(15,23,42,.025); transition:border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.btru-contact-sync__field textarea { min-height:132px; }
.btru-contact-sync__field input:hover,
.btru-contact-sync__field textarea:hover { border-color:#b8c2cf; }
.btru-contact-sync__field input:focus,
.btru-contact-sync__field textarea:focus { border-color:#6ea8fe; background:#fff; box-shadow:0 0 0 4px rgba(13,110,253,.10); }
.btru-contact-sync__consent { margin:3px 0 21px; padding:17px 18px; border:1px solid #dce6f5; border-radius:12px; background:#f8fbff; transition:border-color .16s ease, background-color .16s ease; }
.btru-contact-sync__consent:has(input:checked) { border-color:#9ec5fe; background:#f1f7ff; }
.btru-contact-sync__checkbox-label { gap:13px; font-size:.89em; cursor:pointer; }
.btru-contact-sync__checkbox-control { position:relative; flex:0 0 22px; width:22px; height:22px; margin-top:1px; }
.btru-contact-sync__checkbox-control input { position:absolute !important; width:22px !important; height:22px !important; margin:0 !important; opacity:0 !important; cursor:pointer; z-index:2; }
.btru-contact-sync__checkbox-box { display:block; width:22px; height:22px; border:2px solid #b8c2cf; border-radius:6px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.04); transition:all .15s ease; }
.btru-contact-sync__checkbox-control input:checked + .btru-contact-sync__checkbox-box { border-color:#0d6efd; background:#0d6efd; }
.btru-contact-sync__checkbox-control input:checked + .btru-contact-sync__checkbox-box:after { content:""; position:absolute; left:7px; top:3px; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.btru-contact-sync__checkbox-control input:focus-visible + .btru-contact-sync__checkbox-box { box-shadow:0 0 0 4px rgba(13,110,253,.16); }
.btru-contact-sync__consent-copy { display:block; color:#475569; line-height:1.55; }
.btru-contact-sync__consent-copy strong { display:block; margin-bottom:3px; color:#1e293b; font-size:1.02em; font-weight:700; }
.btru-contact-sync__consent-copy > span { display:block; }
.btru-contact-sync__keyword { margin:9px 0 0 35px; color:#64748b; font-size:.82em; opacity:1; }
.btru-contact-sync .btru-contact-sync__submit { min-height:50px; padding:12px 22px; border-radius:9px; gap:11px; font-size:15px; font-weight:700; }
.btru-contact-sync__submit-arrow { font-size:18px; line-height:1; transition:transform .18s ease; }
.btru-contact-sync .btru-contact-sync__submit:hover .btru-contact-sync__submit-arrow { transform:translateX(3px); }
.btru-contact-sync__turnstile { padding-top:1px; }
@media (max-width:640px) { .btru-contact-sync__form { padding:22px 18px; border-radius:13px; } .btru-contact-sync__intro { margin-bottom:22px; } .btru-contact-sync .btru-contact-sync__submit { width:100%; } }

/* BTRU Contact Sync v1.3 */
.btru-contact-sync__checkbox-box {
    position: relative;
    box-sizing: border-box;
}
.btru-contact-sync__checkbox-control input:checked + .btru-contact-sync__checkbox-box:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -58%) rotate(45deg);
    transform-origin: center;
}
.btru-contact-sync__field input[type="tel"] {
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}
