/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.modal.show {
    opacity: 1;
    display: block;
}

/* Modal Content Styles */
.modal-content {
    background: white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    margin: 0;
    padding: 2rem;
}

.modal.show .modal-content {
    opacity: 1;
}

/* Close Button Styles */
.close-modal, .mobile-close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-modal:hover, .mobile-close-modal:hover {
    color: #333;
}

/* Modal Header Styles */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Form Styles */
.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.modal-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.modal-form input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: #357abd;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        padding: 1.5rem;
    }

    .mobile-modal-content {
        background: white;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        padding: 1.5rem;
        border-radius: 8px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .modal.show .mobile-modal-content {
        opacity: 1;
    }
}

/* Form Message Styles */
.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
}

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

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

/* Body Class for Modal Open */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
} 