/* Deactivation Modal Overlay */
.cnc-cf7-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.cnc-cf7-modal-container {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.cnc-cf7-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.cnc-cf7-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.cnc-cf7-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #646970;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cnc-cf7-modal-close:hover {
    background: #f0f0f1;
    color: #1d2327;
}

/* Modal Body */
.cnc-cf7-modal-body {
    padding: 24px;
}

/* Reasons Grid */
.cnc-cf7-reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cnc-cf7-reason-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.cnc-cf7-reason-option:hover {
    border-color: #2271b1;
    background: #f6f7f7;
}

.cnc-cf7-reason-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cnc-cf7-reason-option input[type="radio"]:checked + .cnc-cf7-reason-icon {
    background: #2271b1;
    color: #fff;
}

.cnc-cf7-reason-option input[type="radio"]:checked ~ .cnc-cf7-reason-text {
    color: #2271b1;
    font-weight: 600;
}

.cnc-cf7-reason-option input[type="radio"]:checked {
    border-color: #2271b1;
    background: #f0f6fc;
}

.cnc-cf7-reason-option:has(input[type="radio"]:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.cnc-cf7-reason-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f1;
    border-radius: 6px;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.2s;
}

.cnc-cf7-reason-text {
    font-size: 14px;
    color: #1d2327;
    font-weight: 500;
    transition: all 0.2s;
}

/* Details Section */
.cnc-cf7-details-section {
    margin-bottom: 20px;
}

.cnc-cf7-details-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    resize: none;
    transition: border-color 0.2s;
}

.cnc-cf7-details-section textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Contact Section */
.cnc-cf7-contact-section {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cnc-cf7-contact-text {
    font-size: 13px;
    line-height: 1.6;
    color: #50575e;
    margin: 0 0 12px 0;
}

.cnc-cf7-contact-text a {
    color: #2271b1;
    text-decoration: none;
}

.cnc-cf7-contact-text a:hover {
    text-decoration: underline;
}

.cnc-cf7-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 0;
}

.cnc-cf7-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
}



/* Modal Footer */
.cnc-cf7-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.cnc-cf7-link-skip {
    color: #a7aaad;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
}

.cnc-cf7-link-skip:hover {
    color: #646970;
}

.cnc-cf7-btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #2271b1;
    color: #fff;
}

.cnc-cf7-btn-submit:hover:not(:disabled) {
    background: #135e96;
}

.cnc-cf7-btn-submit:disabled {
    background: #dcdcde;
    color: #a7aaad;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .cnc-cf7-reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .cnc-cf7-modal-container {
        width: 95%;
    }
}
