/* Modal Overlay */
.unlock-chat-modal {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.unlock-chat-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.unlock-chat-modal.hidden {
    display: none;
}

/* Modal Container */
.unlock-chat-modal .modal-inner {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.unlock-chat-modal:not(.hidden) .modal-inner {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Modal Content */
.modal-content {
    padding: 30px;
}

/* Payment Instructions */
.payment-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #007cba;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Payment Info Sections */
.payment-info, .tribute-info, .custom-instructions {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.payment-info p, .tribute-info p {
    margin: 0;
    font-size: 14px;
}

.payment-link {
    color: #007cba;
    text-decoration: none;
    word-break: break-all;
}

.payment-link:hover {
    text-decoration: underline;
}

.custom-instructions p:first-child {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #007cba;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-group input[type="file"]:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.file-help {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87, #004466);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Approval Notice */
.approval-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #f39c12;
}

.approval-notice p {
    margin: 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

/* Step 2 - Success Message */
.success-message {
    text-align: center;
    padding: 30px 20px;
    background: #f0f8ff;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #cce7ff;
}

.success-message p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #005a87;
    font-weight: 500;
}

.success-message p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

/* Next Steps */
.next-steps {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.next-steps h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.next-steps ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.next-steps li {
    position: relative;
    padding: 5px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.next-steps li:before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: #28a745;
    font-weight: bold;
}

/* Contact Support */
.contact-support {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.contact-support p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Contact Options (for future use) */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-option {
    text-align: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    min-width: 200px;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}

.contact-icon {
    font-size: 18px;
}

.no-contact-info {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}



/* Body scroll lock */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .unlock-chat-modal .modal-inner {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .contact-btn {
        min-width: 180px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .unlock-chat-modal .modal-inner {
        width: 98%;
        margin: 10px;
    }
    
    .modal-header, .modal-content {
        padding: 15px;
    }
    
    .contact-btn {
        min-width: 160px;
        padding: 10px 15px;
        font-size: 13px;
    }
}