.bbdc-form-shell {
    max-width: 860px;
    margin: 1em auto;
    width: min(100%, 860px);
    box-sizing: border-box;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(145deg, #dbe7f4, #f2f6fb);
}

.bbdc-form,
.bbdc-form.bbdc-form-modern {
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d4dce5;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.bbdc-form-header {
    margin: 0 0 18px;
}

.bbdc-form-header h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.bbdc-form-header p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 1rem;
}

.bbdc-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 16px;
}

.bbdc-field {
    min-width: 0;
}

.bbdc-field-full {
    grid-column: 1 / -1;
}

.bbdc-form label,
.bbdc-form .bbdc-label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
    color: #1e293b;
}

.bbdc-field-note {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
}

.bbdc-field-note-po {
    margin: 0 0 8px;
    color: #1f4f82;
    background: #e8f1fb;
    border: 1px solid #bfd7ef;
    border-radius: 8px;
    padding: 8px 10px;
}

.bbdc-required-asterisk {
    color: #dc2626;
    font-weight: 700;
}

.bbdc-form input[type="text"],
.bbdc-form input[type="tel"],
.bbdc-form input[type="email"],
.bbdc-form select {
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #b8c7d9;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.25;
    box-sizing: border-box;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bbdc-form select:disabled,
.bbdc-form input:disabled {
    background: #f1f5f9;
    color: #475569;
    opacity: 1;
}

.bbdc-form input:focus,
.bbdc-form select:focus {
    border-color: #1d4f82;
    box-shadow: 0 0 0 3px rgba(29, 79, 130, 0.16);
    outline: none;
}

.bbdc-form input.bbdc-field-error {
    border: 2px solid #dc2626;
    background: #fef2f2;
}

.bbdc-form input.bbdc-field-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.bbdc-radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.bbdc-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #b8c7d9;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
}

.bbdc-radio-option input[type="radio"] {
    margin: 0;
    width: 22px;
    height: 22px;
    accent-color: #1d4f82;
    flex: 0 0 auto;
    align-self: center;
    vertical-align: middle;
}

.bbdc-radio-option span {
    display: inline-block;
    line-height: 1.2;
    font-weight: 600;
    color: #1e293b;
}

.bbdc-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.bbdc-consent input[type="checkbox"] {
    margin-top: 2px;
    width: 22px;
    height: 22px;
    accent-color: #1d4f82;
    flex: 0 0 auto;
}

.bbdc-consent-copy {
    display: block;
    color: #1e293b;
}

.bbdc-consent-primary {
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

.bbdc-consent-line {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bbdc-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
}

.bbdc-submit-button {
    width: 100%;
    min-height: 54px;
    border: 1px solid #0f3f6a;
    border-radius: 12px;
    background: linear-gradient(180deg, #1d5d97 0%, #124872 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(18, 72, 114, 0.2);
    transition: transform 0.1s ease, filter 0.12s ease;
}

.bbdc-submit-button:hover {
    filter: brightness(1.03);
}

.bbdc-submit-button:active {
    transform: translateY(1px);
}

.bbdc-submit-button:focus {
    outline: 2px solid #7fb3df;
    outline-offset: 2px;
}

.bbdc-submit-button:disabled {
    background: #94a3b8;
    border-color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.bbdc-submit-button:disabled:hover {
    filter: none;
}

.bbdc-reset-button {
    width: 100%;
    min-height: 54px;
    border: 1px solid #94a3b8;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.bbdc-reset-button:hover {
    background: #f8fafc;
    border-color: #64748b;
}

.bbdc-reset-button:active {
    background: #f1f5f9;
}

.bbdc-reset-button:focus {
    outline: 2px solid #7fb3df;
    outline-offset: 2px;
}

.bbdc-result {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.4;
}

.bbdc-success {
    background: #e7f7e7;
    border: 1px solid #b2d8b2;
}

.bbdc-error {
    background: #fdeaea;
    border: 1px solid #e0b4b4;
    font-weight: 700;
}

.bbdc-form .bbdc-danger-button {
    background: #b91c1c;
    border: 1px solid #b91c1c;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
}

.bbdc-form .bbdc-danger-button:hover {
    background: #991b1b;
    border-color: #991b1b;
}

@media (min-width: 760px) {
    .bbdc-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bbdc-radio-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 760px) and (max-width: 1024px) {
    .bbdc-form-shell {
        width: min(calc(100% - 2em), 860px);
    }
}

@media (max-width: 480px) {
    .bbdc-form-shell {
        margin: 14px auto;
    }

    .bbdc-form,
    .bbdc-form.bbdc-form-modern {
        padding: 16px;
        border-radius: 14px;
    }
}
