/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker background */
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    /* Scrollable if tall */
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Form Styles within Modal */
.modal-header h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 500;
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form input[type="email"],
.modal-form input[type="number"],
.modal-form select,
.modal-form input[type="file"] {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* File Upload specific styling */
.modal-form input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

/* Radio Buttons Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* Submit Button */
.modal-form .btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.modal-form .btn-submit:hover {
    background-color: #ffbf00;
    /* Slightly darker/lighter depending on primary */
    transform: translateY(-2px);
}

/* Scrollbar styling for the modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}