/* --- Modal Specific CSS --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000; /* High z-index to ensure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
    padding-top: 50px;
    animation: fadeInModal 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 450px; /* Max width for desktop */
    position: relative;
    animation: slideInUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn {
    color: var(--text-dark);
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Animations */
@keyframes fadeInModal {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideInUpModal {
    from {transform: translateY(50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
/* Ensure form inputs use existing styles */
.form-group input, .form-group select {
    width: 100%;
    /* other styles inherited from .form-group input */
}