/**
 * Copyright © LuxuryUnlimited. All rights reserved.
 * app/code/LuxuryUnlimited/RecommendedCharity/view/frontend/web/css/charity-popup.css
 */

.charity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.charity-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.charity-modal-content {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    z-index: 9999;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.charity-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.charity-modal-close:hover {
    color: #000;
}

.charity-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: #333;
}

.charity-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.charity-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.charity-form-full {
    width: 100%;
    margin-bottom: 20px;
}

.charity-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

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

.charity-input,
.charity-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s;
}

.charity-input:focus,
.charity-textarea:focus {
    outline: none;
    border-color: #4a5568;
}

.charity-input::placeholder,
.charity-textarea::placeholder {
    color: #999;
}

.charity-upload-group {
    position: relative;
}

.charity-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.charity-file-input {
    display: none;
}

.charity-browse-btn {
    padding: 10px 20px;
    background: #4a5568;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.charity-browse-btn:hover {
    background: #2d3748;
}

.charity-file-name {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 14px;
    color: #999;
}

.charity-file-info {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.charity-select-causes {
    display: block;
}

.charity-selected-causes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.charity-cause-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #e8f4f8;
    border-radius: 20px;
    font-size: 13px;
    color: #2c5282;
}

.charity-cause-tag span {
    margin-right: 8px;
}

.charity-remove-cause {
    background: transparent;
    border: none;
    color: #2c5282;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charity-remove-cause:hover {
    color: #1a365d;
}

.charity-textarea {
    resize: vertical;
    min-height: 100px;
}

.charity-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.charity-submit-btn {
    padding: 12px 40px;
    background: #2c5282;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.charity-submit-btn:hover {
    background: #1a365d;
}

.charity-submit-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

body.charity-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .charity-modal-content {
        margin: 20px;
        padding: 30px 20px;
        max-height: calc(100vh - 40px);
    }
    
    .charity-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .charity-modal-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}