.bcg-sd-block {
    --bcg-sd-text: #202428;
    --bcg-sd-muted: #4d555c;
    --bcg-sd-border: #c8cdd1;
    --bcg-sd-button: #20262a;
    color-scheme: light;
    color: var(--bcg-sd-text) !important;
    border: 1px solid var(--bcg-sd-border) !important;
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Photocrati applies light text colors for dark page backgrounds. Keep every
   piece of copy inside this intentionally light panel readable. */
.bcg-sd-block .bcg-sd-heading {
    color: var(--bcg-sd-text) !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.25;
}

.bcg-sd-block .bcg-sd-description,
.bcg-sd-block .bcg-sd-description p,
.bcg-sd-block .bcg-sd-label,
.bcg-sd-block .bcg-sd-message,
.bcg-sd-block .bcg-sd-message p,
.bcg-sd-block .bcg-sd-status {
    color: var(--bcg-sd-muted) !important;
    opacity: 1 !important;
}

.bcg-sd-description > :first-child { margin-top: 0 !important; }
.bcg-sd-description > :last-child { margin-bottom: 18px !important; }

.bcg-sd-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.bcg-sd-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 280px;
    font-weight: 600;
}

.bcg-sd-block .bcg-sd-email {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #767d83 !important;
    border-radius: 4px;
    background: #fff !important;
    color: var(--bcg-sd-text) !important;
    -webkit-text-fill-color: var(--bcg-sd-text);
    font: inherit;
    font-weight: 400 !important;
    opacity: 1 !important;
    box-sizing: border-box;
}

.bcg-sd-block .bcg-sd-email::placeholder {
    color: #929aa1 !important;
    -webkit-text-fill-color: #929aa1;
    font-weight: 400 !important;
    opacity: 1;
}

.bcg-sd-block .bcg-sd-email:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.bcg-sd-block .bcg-sd-button,
.bcg-sd-block a.bcg-sd-button,
.bcg-sd-block button.bcg-sd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--bcg-sd-button) !important;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    background: var(--bcg-sd-button) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    opacity: 1;
    box-shadow: none;
}

.bcg-sd-block .bcg-sd-button:hover,
.bcg-sd-block .bcg-sd-button:focus {
    background: #343b40 !important;
    border-color: #343b40 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    opacity: 1;
}

.bcg-sd-block .bcg-sd-button:focus-visible {
    outline: 3px solid rgba(34, 113, 177, 0.38);
    outline-offset: 2px;
}

.bcg-sd-block .bcg-sd-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.bcg-sd-block .bcg-sd-button--secondary,
.bcg-sd-block a.bcg-sd-button--secondary,
.bcg-sd-block button.bcg-sd-button--secondary {
    background: #fff !important;
    color: var(--bcg-sd-text) !important;
    -webkit-text-fill-color: var(--bcg-sd-text);
}

.bcg-sd-block .bcg-sd-button--secondary:hover,
.bcg-sd-block .bcg-sd-button--secondary:focus {
    background: #f1f3f4 !important;
    color: var(--bcg-sd-text) !important;
    -webkit-text-fill-color: var(--bcg-sd-text);
}

.bcg-sd-message {
    flex-basis: 100%;
    margin-top: 4px;
}

.bcg-sd-message p { margin: 8px 0 !important; }

.bcg-sd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.bcg-sd-status { margin: 0 !important; }

@media (max-width: 520px) {
    .bcg-sd-button,
    .bcg-sd-form .bcg-sd-button {
        width: 100%;
    }
}
