.rollout-form-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 650px;
    margin: 1.5em auto;
}

.rollout-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    box-sizing: border-box;
}

.rollout-form-col {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
}

.rollout-col-100 {
    width: 100%;
}

.rollout-col-50 {
    width: calc(50% - 8px);
}

.rollout-col-33 {
    width: calc(33.333% - 11px);
}

@media (max-width: 640px) {

    .rollout-col-50,
    .rollout-col-33 {
        width: 100%;
    }
}

.rollout-form-col label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 6px;
    color: inherit;
}

.rollout-form-col .req {
    color: #ef4444;
    margin-left: 2px;
}

.rollout-form-col input[type="text"],
.rollout-form-col input[type="email"],
.rollout-form-col input[type="tel"],
.rollout-form-col input[type="number"],
.rollout-form-col input[type="url"],
.rollout-form-col input[type="date"],
.rollout-form-col select,
.rollout-form-col textarea {
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
    font-size: 1em;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rollout-form-col input:focus,
.rollout-form-col select:focus,
.rollout-form-col textarea:focus {
    border-color: currentColor;
    box-shadow: 0 0 0 1px currentColor;
}

.rollout-choices-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.rollout-choice-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.rollout-section-divider {
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid #e2e8f0;
}

.rollout-section-title {
    margin: 0 0 4px 0 !important;
    font-size: 1.15em !important;
    font-weight: 700 !important;
    color: inherit;
}

.rollout-section-desc {
    margin: 0 0 10px 0 !important;
    font-size: 0.88em !important;
    color: #64748b;
}

.rollout-gdpr-label {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 8px;
    font-size: 0.88em !important;
    font-weight: normal !important;
    cursor: pointer;
    line-height: 1.45;
}

.rollout-gdpr-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.rollout-form-footer {
    margin-top: 20px;
    width: 100%;
}

.rollout-form-footer.rollout-align-left {
    display: flex;
    justify-content: flex-start;
}

.rollout-form-footer.rollout-align-center {
    display: flex;
    justify-content: center;
}

.rollout-form-footer.rollout-align-right {
    display: flex;
    justify-content: flex-end;
}

.rollout-form-footer.rollout-align-block .rollout-submit-btn {
    width: 100% !important;
    justify-content: center;
}

.rollout-submit-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.rollout-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rollout-form-response {
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}

.rollout-form-response.rollout-success {
    display: flex !important;
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
    border-left: 5px solid #22c55e !important;
}

.rollout-form-response.rollout-error {
    display: flex !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
    border-left: 5px solid #ef4444 !important;
}

.rollout-form-response .rollout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.rollout-form-response.rollout-success .rollout-icon {
    background-color: #22c55e;
    color: #ffffff;
}

.rollout-form-response.rollout-error .rollout-icon {
    background-color: #ef4444;
    color: #ffffff;
}

.rollout-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: rollout-spin 0.6s linear infinite;
}

@keyframes rollout-spin {
    to {
        transform: rotate(360deg);
    }
}