/* Co-Counsel Popup - Beautified Container Only */
.co-counsel-popup {
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
}

.co-counsel-popup.show {
    animation: fadeIn 0.3s ease-out;
}

.co-counsel-popup.hide {
    animation: fadeOut 0.3s ease-out;
}

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

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

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

.co-counsel-content {
    max-width: 600px !important;
    padding: 0 !important;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.co-counsel-message {
    padding: 3rem !important;
    overflow-y: auto;
    max-height: calc(90vh - 0px);
    -webkit-overflow-scrolling: touch;
}

.co-counsel-message h2 {
    color: #000465 !important;
    font-family: "Raleway", sans-serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 2rem 0 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;letter-spacing: normal !Important;
}

/* .co-counsel-message h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3F9F7F 0%, #2d7a5f 100%);
    border-radius: 2px;
} */

/* Form fields spacing - matching existing forms */
.co-counsel-form .form-group {
    margin-bottom: 25px;
}

.co-counsel-form label {
    padding-bottom: 5px;
}

.co-counsel-form .error-message {
    display: none;
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    font-family: "Raleway", sans-serif;
}

/* Form fields use existing styles - no changes */
.co-counsel-form .form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
}

.co-counsel-form .form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.co-counsel-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Enhanced Close Button */
#co-counsel-popup .dialog-close-button {
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #E1E2E3 !important;
    background: #fff !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#co-counsel-popup .dialog-close-button:hover {
    border-color: #3F9F7F !important;
    background: #f8f9fa !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(63, 159, 127, 0.2);
}

#co-counsel-popup .dialog-close-button span {
    background: #666 !important;
    width: 18px !important;
    height: 2px !important;
    top: 50% !important;
    right: 50% !important;
    transform: translate(50%, -50%) rotate(45deg);
    transition: background 0.3s ease;
}

#co-counsel-popup .dialog-close-button span:nth-child(2) {
    transform: translate(50%, -50%) rotate(-45deg);
}

#co-counsel-popup .dialog-close-button:hover span {
    background: #3F9F7F !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .co-counsel-content {
        max-width: 95% !important;
        margin: 20px auto !important;
        max-height: 85vh !important;
    }
    
    .co-counsel-message {
        padding: 2rem 1.5rem !important;
        max-height: calc(85vh - 0px) !important;
    }
    
    .co-counsel-message h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #co-counsel-popup .dialog-close-button {
        top: 15px !important;
        right: 15px !important;
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 480px) {
    .co-counsel-content {
        max-width: 98% !important;
        margin: 10px auto !important;
        max-height: 90vh !important;
    }
    
    .co-counsel-message {
        padding: 1.5rem 1rem !important;
        max-height: calc(90vh - 0px) !important;
    }
    
    .co-counsel-message h2 {
        font-size: 1.5rem !important;
    }
}

