/* Condolence Widget */
.condolence-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.condolence-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
    margin-bottom: 25px;
}

.condolence-header i {
    font-size: 48px;
    color: #4a90e2;
    margin-bottom: 10px;
    display: block;
}

.condolence-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.memorial-date {
    color: #666;
    font-style: italic;
}

/* Condolence Form */
.condolence-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.condolence-form h4 {
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.submit-condolence {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
}

.submit-condolence:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

.submit-condolence i {
    margin-right: 8px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

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

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

/* Condolence Messages */
.condolence-messages {
    margin-top: 30px;
}

.condolence-messages h4 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.messages-list {
    max-height: 500px;
    overflow-y: auto;
}

.condolence-message {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #4a90e2;
    transition: all 0.3s;
}

.condolence-message:hover {
    transform: translateX(5px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e8ed;
}

.message-author {
    font-weight: bold;
    color: #4a90e2;
}

.message-author i {
    margin-right: 5px;
}

.message-date {
    font-size: 0.8rem;
    color: #999;
}

.message-date i {
    margin-right: 3px;
}

.message-content {
    color: #555;
    line-height: 1.6;
}

.no-messages {
    text-align: center;
    color: #999;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-messages i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .condolence-widget {
        padding: 15px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .submit-condolence {
        width: 100%;
    }
}