.ccbcrm-form-wrap {
    max-width: 560px;
    margin: 24px 0;
}

.ccbcrm-form {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 22px;
    background: #fff;
}

.ccbcrm-form h3 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.3;
}

.ccbcrm-fields {
    display: grid;
    gap: 14px;
}

.ccbcrm-form label {
    display: block;
    margin: 0;
    font-weight: 600;
}

.ccbcrm-form label span {
    display: block;
    margin-bottom: 6px;
}

.ccbcrm-form input[type="text"],
.ccbcrm-form input[type="email"] {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    box-sizing: border-box;
}

.ccbcrm-consent {
    display: flex !important;
    gap: 8px;
    align-items: flex-start;
    margin-top: 14px !important;
    font-size: 13px;
    font-weight: 400 !important;
    line-height: 1.4;
}

.ccbcrm-consent input {
    margin-top: 2px;
}

.ccbcrm-consent span {
    margin: 0 !important;
}

.ccbcrm-form button {
    min-height: 42px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: #2271b1;
    color: #fff;
    font-weight: 700;
}

.ccbcrm-form button:hover {
    filter: brightness(0.95);
}

.ccbcrm-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.ccbcrm-success {
    background: #ecfdf3;
    color: #027a48;
}

.ccbcrm-warning {
    background: #fffaeb;
    color: #b54708;
}

.ccbcrm-error {
    background: #fef3f2;
    color: #b42318;
}

.ccbcrm-form-wrap-footer,
.ccbcrm-form-wrap-compact,
.ccbcrm-form-wrap-inline {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.ccbcrm-form-footer,
.ccbcrm-form-compact,
.ccbcrm-form-inline {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ccbcrm-form-footer h3,
.ccbcrm-form-compact h3,
.ccbcrm-form-inline h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.ccbcrm-form-footer .ccbcrm-fields,
.ccbcrm-form-inline .ccbcrm-fields {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.ccbcrm-form-footer label,
.ccbcrm-form-inline label {
    flex: 1 1 auto;
    min-width: 0;
}

.ccbcrm-form-footer label span,
.ccbcrm-form-inline label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ccbcrm-form-footer input[type="email"],
.ccbcrm-form-inline input[type="email"],
.ccbcrm-form-footer input[type="text"],
.ccbcrm-form-inline input[type="text"] {
    min-height: 44px;
    margin: 0;
    border-radius: 8px;
    font-size: 14px;
}

.ccbcrm-form-footer button,
.ccbcrm-form-inline button {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
    border-radius: 8px;
    padding: 0 18px;
}

.ccbcrm-form-footer .ccbcrm-consent,
.ccbcrm-form-inline .ccbcrm-consent {
    margin-top: 8px !important;
    font-size: 12px;
}

.ccbcrm-form-compact .ccbcrm-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ccbcrm-form-compact label span {
    font-size: 13px;
}

.ccbcrm-form-compact input[type="email"],
.ccbcrm-form-compact input[type="text"] {
    min-height: 40px;
}

.ccbcrm-form-compact button {
    min-height: 40px;
    width: 100%;
}

@media (max-width: 520px) {
    .ccbcrm-form-footer .ccbcrm-fields,
    .ccbcrm-form-inline .ccbcrm-fields {
        flex-direction: column;
    }

    .ccbcrm-form-footer button,
    .ccbcrm-form-inline button {
        width: 100%;
    }
}
