/* Zoho Membership Form Styles - Single Page Design */

.zoho-membership-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
}

.zoho-form-main-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

button.zoho-popup-close, button.zoho-duplicate-popup-close, button.zoho-popup-close:hover, button.zoho-duplicate-popup-close:hover, button.zoho-popup-close:active, button.zoho-duplicate-popup-close:active {
    background: #003DA5;
    color: white;
}
#membership_reasons_group{
    gap: 0;
}

.zoho-form-group a{
    color: #002d7a!important;
}
.zoho-form-section {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 0px;
    border-radius: 4px;
}

.zoho-form-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #003DA5;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.zoho-form-section-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

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

.zoho-form-group label {
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.zoho-form-group label strong {
    font-weight: 600;
}

.zoho-form-group .required {
    color: #e74c3c;
    margin-left: 3px;
}

.zoho-form-group input[type="text"],
.zoho-form-group input[type="email"],
.zoho-form-group input[type="tel"],
.zoho-form-group input[type="url"],
.zoho-form-group select,
.zoho-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    color: #333;
}

.zoho-form-group input:focus,
.zoho-form-group select:focus,
.zoho-form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.zoho-form-group input.error,
.zoho-form-group select.error,
.zoho-form-group label.error,
.zoho-checkbox-group.error {
    border-color: #e74c3c;
}

.zoho-checkbox-group.error {
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff5f5;
}

.zoho-form-group input.error:focus,
.zoho-form-group select.error:focus {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.zoho-form-group .zoho-form-description {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.5;
}

.zoho-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .zoho-form-row {
        grid-template-columns: 1fr;
    }
}

/* Phone input group */
.zoho-phone-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoho-phone-part {
    flex: 1;
    max-width: 100px;
}

.zoho-phone-separator {
    color: #666;
    font-weight: 500;
}

/* Checkbox group */
.zoho-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.zoho-checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-bottom: 0;
}

.zoho-checkbox-group label:hover {
    background-color: #f8f9fa;
}

.zoho-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}

.zoho-form-group label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}
#membership_reasons .choices__input.choices__input--cloned , #membership_reasons input[type="search"] {
    background: none;
    border: none !important;
}

.zoho-form-group label a {
    color: #003DA5!important;
    transition: color 0.3s;
    text-decoration: none!important;

}

.zoho-form-group label a:hover {
    color: #002d7a;
}

/* Choices.js custom styles */
.zoho-membership-form-container .zoho-membership-reasons-select {
    display: none;
}

.zoho-membership-form-container .choices {
    margin-bottom: 20px;
}

.zoho-membership-form-container .choices .choices__inner {
    background-color: #fff;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    padding: 6px 10px;
    min-height: 38px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow: visible !important;
}

.zoho-membership-form-container .choices .choices__list--multiple {
    overflow: visible !important;
}

.zoho-membership-form-container .choices.is-focused .choices__inner {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.zoho-membership-form-container .choices .choices__list--multiple .choices__item {
    background-color: #003DA5;
    border: 1px solid #003DA5;
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px 4px 4px 0;
    font-size: 14px;
    font-weight: 500;
}

/* Restaurer le X par défaut de Choices.js - background-image blanc (fill #FFF) */
.zoho-membership-form-container .choices .choices__list--multiple .choices__item .choices__button {
    border: none;
    background-color: transparent !important;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 8px !important;
    padding: 0 0 0 8px;
    margin: 0 0 0 4px;
    width: 8px;
    line-height: 1;
    opacity: 1;
    font-size: 0;
    text-indent: -9999px;
}

.zoho-membership-form-container .choices .choices__list--multiple .choices__item .choices__button:hover,
.zoho-membership-form-container .choices .choices__list--multiple .choices__item .choices__button:focus {
    background-color: transparent !important;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==) !important;
    opacity: 0.9;
}

.zoho-membership-form-container .choices .choices__input {
    background: #fff !important;
    border: none !important;
    min-width: 260px !important;
}

.zoho-membership-form-container .choices .choices__placeholder {
    background: #fff !important;
    border: none !important;
    color: #999;
    opacity: 1;
    padding: 0;
    min-width: 260px !important;
}

.zoho-membership-form-container .choices .choices__list--dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.zoho-membership-form-container .choices .choices__list--dropdown .choices__item--selectable {
    padding: 10px 12px;
    font-size: 15px;
}

.zoho-membership-form-container .choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #f8f9fa;
    color: #333;
}


.zoho-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.zoho-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zoho-btn-primary {
    background-color: #003DA5!important;
    color: #fff!important;
    border: 1px solid #003DA5!important;
    ;
}

.zoho-btn-primary:hover {
    background-color: #003DA5!important;
}

.zoho-btn-secondary {
    background-color: #003DA5!important;
    color: #fff!important;
    border: 1px solid #003DA5!important;
}

.zoho-btn-secondary:hover {
    background-color: #003DA5;
}

.zoho-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Delegate items */
.delegate-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.delegate-item h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.delegate-item .zoho-form-group {
    margin-bottom: 15px;
}

.delegate-item .remove-delegate {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 14px;
}

/* Loading state */
.zoho-form-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    margin: 0;
    padding: 0;
    border: none;
}

.zoho-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003DA5;
    border-radius: 50%;
    animation: zoho-spin 1s linear infinite;
}
.zoho-form-label-checkbox, .zoho-form-label-checkbox label {
    margin-bottom:0!important;
}

@keyframes zoho-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.zoho-logo-upload-container {
    margin-top: 10px;
}

.zoho-logo-upload-area {
    border: 2px dashed #d0d0d0;
    border-radius: 4px;
    padding: 30px 20px;
    background: #fafafa;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.zoho-logo-upload-area:hover {
    border-color: #0073aa;
    background: #f5f5f5;
}

.zoho-logo-upload-area.dragover {
    border-color: #0073aa;
    background: #e8f4f8;
    border-style: solid;
}

.zoho-logo-upload-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}
button#logo_upload_btn, button#logo_upload_btn:hover, button#logo_upload_btn:active, button#logo_upload_btn:focus {
    background: #003DA5!important;
    border: 1px solid #003DA5!important;
    color: #ffffff!important;
}

.zoho-logo-file-name {
    color: #666;
    font-size: 14px;
    flex: 1;
}

.zoho-logo-choose-file {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.zoho-logo-upload-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #003DA5;
    background: #003DA5;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.zoho-logo-upload-btn:hover {
    background: #002d7a;
    border-color: #002d7a;
    color: #ffffff;
}

.zoho-logo-upload-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.zoho-logo-upload-btn:hover svg {
    stroke: #ffffff;
}

.zoho-logo-remove-name {
    width: 40px!important;
    height: 40px!important;
    border-radius: 50%;
    border: none;
    background: #d32f2f!important;
    color: #ffffff!important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    margin-left: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.zoho-logo-remove-name:hover {
    background: #b71c1c;
}

.zoho-logo-description {
    margin-top: 10px;
    color: #999;
    font-size: 13px;
    margin-bottom: 0;
}

.zoho-form-no-padding{
    padding-top : 0!important;
}
.zoho-form-separator{
    margin-bottom: 20px!important;
    opacity: 0.3!important;
}
/* Responsive */
@media (max-width: 768px) {
    .zoho-membership-form-container {
        padding: 20px 15px;
    }
    
    .zoho-form-section {
        padding: 20px 15px;
    }
    
    .zoho-form-main-title {
        font-size: 24px;
    }
    
    .zoho-form-section-title {
        font-size: 20px;
    }
}

.zoho-popup-overlay,
.zoho-duplicate-popup-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.zoho-popup-content,
.zoho-duplicate-popup-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoho-popup-header,
.zoho-duplicate-popup-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.zoho-popup-header h3,
.zoho-duplicate-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.zoho-duplicate-popup-header h3 {
    color: #d32f2f;
}

.zoho-popup-body,
.zoho-duplicate-popup-body {
    padding: 25px;
}

.zoho-popup-body p,
.zoho-duplicate-popup-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.zoho-popup-footer,
.zoho-duplicate-popup-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.zoho-popup-close,
.zoho-duplicate-popup-close {
    background: #0073aa;
    color: #ffffff;
    border: none!important;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zoho-popup-close:hover,
.zoho-duplicate-popup-close:hover {
    background: #005a87;
}

.zoho-duplicate-popup-close {
    background: #d32f2f;
}

.zoho-duplicate-popup-close:hover {
    background: #b71c1c;
}

.zoho-popup-close:active,
.zoho-duplicate-popup-close:active {
    transform: scale(0.98);
}
