.cfp-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.cfp-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.cfp-form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.cfp-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.cfp-alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.cfp-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.cfp-alert ul {
    margin: 8px 0 0 20px;
}

.cfp-form-group {
    margin-bottom: 20px;
}

.cfp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.cfp-required label::after {
    content: ' *';
    color: #dc3545;
}

.cfp-form-group input,
.cfp-form-group select,
.cfp-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cfp-form-group input:focus,
.cfp-form-group select:focus,
.cfp-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.cfp-form-group input.cfp-error,
.cfp-form-group select.cfp-error,
.cfp-form-group textarea.cfp-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.cfp-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.cfp-form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.cfp-form-group.cfp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cfp-form-group.cfp-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.cfp-form-group.cfp-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

.cfp-form-group.cfp-checkbox a {
    color: #007bff;
    text-decoration: none;
}

.cfp-form-group.cfp-checkbox a:hover {
    text-decoration: underline;
}

.cfp-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cfp-submit-btn:hover:not(:disabled) {
    background: #0056b3;
}

.cfp-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .cfp-form-wrapper {
        padding: 20px;
    }

    .cfp-form-title {
        font-size: 20px;
    }

    .cfp-submit-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ---------------------------------------------------------------- v1.1 */

.cfp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 20px;
}

.cfp-field-error {
    font-size: 13px;
    color: #b00d1b;
    margin-top: 6px;
}

.cfp-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.cfp-form-group select:disabled {
    background: #f4f4f4;
    cursor: not-allowed;
}

.cfp-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 16px;
    border: 1.5px dashed #999;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.cfp-dropzone:hover,
.cfp-dropzone.is-over,
.cfp-dropzone:focus-within {
    border-color: #007bff;
    background: #f5f9ff;
}

/* L'input reste focusable et accessible, recouvrant la zone. */
.cfp-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    padding: 0;
    border: 0;
}

.cfp-upload.is-full .cfp-dropzone {
    display: none;
}

.cfp-file-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cfp-file {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.cfp-file img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f4f4f4;
    border-radius: 4px;
}

.cfp-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.cfp-file-size {
    font-size: 12px;
    color: #666;
}

.cfp-file-remove {
    border: 0;
    background: none;
    color: #b00d1b;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
}

.cfp-recaptcha-notice {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.cfp-alert:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
