.block-content {
    padding-top: 5px !important;
}

#cmr-registration-form {
    max-width: 520px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 8px;
}

#cmr-registration-form h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

#cmr-registration-form h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#cmr-registration-form label {
    display: block;
    margin: 6px 0 4px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

#cmr-registration-form .required {
    color: #e53935;
}

#cmr-registration-form input[type="text"],
#cmr-registration-form input[type="email"],
#cmr-registration-form input[type="password"],
#cmr-registration-form input[type="tel"],
#cmr-registration-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#cmr-registration-form input:focus,
#cmr-registration-form select:focus {
    border-color: #111;
    outline: none;
}

.cmr-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.cmr-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

button.cmr-next-step,
button.cmr-prev-step,
button.cmr-submit {
    width: 100%;
    padding: 14px;
    margin-top: 25px;
    background: #E95B09;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

button.cmr-prev-step {
    background: #f5f5f5;
    color: #333;
    margin-top: 15px;
}

button.cmr-next-step:hover,
button.cmr-submit:hover {
    background: #f47126;
}

button.cmr-prev-step:hover {
    background: #e0e0e0;
}

a.cmr-login-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a.cmr-login-btn:hover {
    border-color: #333;
    background: #fafafa;
}

.cmr-divider {
    text-align: center;
    position: relative;
    margin: 15px 0;
}

.cmr-divider:before {
    content: "";
    height: 1px;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 1;
}

.cmr-divider span {
    padding: 0 15px;
    background: #fff;
    position: relative;
    z-index: 2;
    color: #777;
    font-size: 14px;
}

.cmr-gdpr {
    margin: 25px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

/* 2-Column Layout Support */
.cmr-step.active {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cmr-step h3 {
    width: 100%;
}

.cmr-step button,
.cmr-step .cmr-divider,
.cmr-step a.cmr-login-btn,
.cmr-step .cmr-gdpr,
.cmr-step #cmr-message {
    width: 100%;
}

.cmr-field-full {
    width: 100%;
}

.cmr-field-half {
    width: calc(50% - 7.5px);
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .cmr-field-half {
        width: 100%;
    }
}

.hidden {
    display: none;
}

#cmr-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
    text-align: center;
}

#cmr-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

#cmr-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* SIRET Verification */
.cmr-siret-wrapper {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.cmr-siret-wrapper input {
	flex: 2; /* Takes 2 parts of the space */
	min-width: 0;
}

.cmr-verify-btn {
	flex: 1; /* Takes 1 part of the space */
	padding: 12px 24px;
	background: #4CAF50;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	max-width: 200px;
	min-width: 140px;
}

.cmr-verify-btn:hover:not(:disabled) {
	background: #45a049;
}

.cmr-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cmr-verify-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cmr-field-message {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.cmr-field-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.cmr-field-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Auto-fill animation */
input.auto-filled {
    animation: highlightField 2s ease;
    border-color: #4CAF50 !important;
}

@keyframes highlightField {
    0% {
        background-color: #e8f5e9;
    }
    50% {
        background-color: #c8e6c9;
    }
    100% {
        background-color: transparent;
    }
}

/* Progress Bar Container */
.cmr-progress-container {
    margin-bottom: 12px;
    padding: 5px 0;
}

.cmr-progress-bar {
    display: none; /* Hide the old progress bar */
}

.cmr-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-bottom: 5px;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

/* Connecting line between steps */
.cmr-progress-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e0e0;
    z-index: -1;
}

.cmr-progress-step {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cmr-progress-step.active {
    border-color: #E95B09;
    color: #fff;
    background: linear-gradient(135deg, #E95B09 0%, #f47126 100%);
    box-shadow: 0 4px 12px rgba(233, 91, 9, 0.3);
    transform: scale(1.1);
}

.cmr-progress-step.completed {
    background-color: #E95B09;
    border-color: #E95B09;
    color: #fff;
    box-shadow: 0 2px 8px rgba(233, 91, 9, 0.2);
}

/* Completed line effect */
.cmr-progress-step.completed::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 44px;
    width: calc(100vw / 3 - 44px); /* Dynamic width to reach next circle */
    height: 3px;
    background: #E95B09;
    z-index: -1;
}

/* For steps in container with max-width */
.cmr-progress-steps .cmr-progress-step.completed::after {
    width: 156px; /* Calculated: (400px max-width - 3*44px circles) / 2 */
}

.cmr-progress-step:last-child.completed::after {
    display: none;
}

/* Honeypot */
.cmr-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Password Strength Indicator */
.password-strength-wrapper {
    margin-top: 10px;
    display: none; /* Hidden by default */
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.password-strength-fill.weak {
    background-color: #e53935;
}

.password-strength-fill.medium {
    background-color: #fb8c00;
}

.password-strength-fill.good {
    background-color: #43a047;
}

.password-strength-fill.excellent {
    background-color: #2e7d32;
}

.password-strength-text {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

.password-strength-text.weak {
    color: #e53935;
}

.password-strength-text.medium {
    color: #fb8c00;
}

.password-strength-text.good {
    color: #43a047;
}

.password-strength-text.excellent {
    color: #2e7d32;
}

/* Improved Focus States for Accessibility */
#cmr-registration-form input:focus,
#cmr-registration-form select:focus,
#cmr-registration-form button:focus,
#cmr-registration-form a:focus {
    outline: 2px solid #E95B09;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    #cmr-registration-form input,
    #cmr-registration-form select {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Error Message Styles */
.error-message {
    display: block;
    color: #c62828;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.error-message:empty {
    display: none;
}

/* Privacy Notice Accessibility */
.bypixcl-privacy-notice {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #E95B09;
}

.bypixcl-privacy-notice h4 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

.bypixcl-privacy-notice p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 10px 0;
}

.privacy-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-top: 15px;
}

.privacy-consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Skip to Content Link (for screen readers) */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 10px 15px;
    background: #E95B09;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.skip-to-content:focus {
    left: 10px;
    top: 10px;
}

/* Global Loading Spinner */
.cmr-global-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cmr-global-loading.active {
    opacity: 1;
    visibility: visible;
}

.cmr-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #E95B09;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

.cmr-global-loading span {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* Info message state */
.cmr-field-message.info {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* Input validation states */
input.valid {
    border-color: #43a047 !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2343a047" viewBox="0 0 16 16"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

input.invalid {
    border-color: #e53935 !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23e53935" viewBox="0 0 16 16"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Bloc règles mot de passe */
.cmr-password-rules-list {
    list-style: none;
    margin: 8px 0 0;
    padding-left: 0;
}

.cmr-password-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* enlève toute puce résiduelle */
.cmr-password-rule::marker {
    content: "";
}

/* icône */
.cmr-password-rule .rule-icon {
    display: inline-block;
    min-width: 14px;
    font-weight: 700;
    line-height: 1;
}

/* état invalide */
.cmr-password-rule.invalid,
.cmr-password-rule.invalid .rule-icon,
.cmr-password-rule.invalid .rule-text {
    color: #d32f2f;
}

/* état valide */
.cmr-password-rule.valid,
.cmr-password-rule.valid .rule-icon,
.cmr-password-rule.valid .rule-text {
    color: #2e7d32;
}
/* bouton suivant désactivé */
.cmr-next-step:disabled {
    background-color: #cfcfcf;
    border-color: #cfcfcf;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* transition visuelle plus propre */
.cmr-next-step {
    transition: background-color .2s ease, opacity .2s ease;
}
