.hidden {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #232323;
    margin: 10% auto;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #99948A;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #FF7900;
}

.modal h2 {
    margin-top: 0;
    color: #EBE0D7;
    font-family: 'Pixam Pixel', monospace;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #EBE0D7;
    font-family: monospace;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: #EBE0D7;
    font-family: monospace;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF7900;
    box-shadow: 0 0 0 2px rgba(255, 121, 0, 0.2);
}

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

.form-submit {
    background-color: #FF7900;
    color: #232323;
    border: none;
    padding: 12px 24px;
    font-family: 'Pixam Pixel', monospace;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.form-submit:hover {
    background-color: #ff8c1a;
    transform: translateY(-2px);
}

.form-submit:active {
    transform: translateY(0);
}

.submission-message {
    display: none;
    text-align: center;
    padding: 20px;
    color: #EBE0D7;
}

.submission-message h3 {
    color: #FF7900;
    margin-bottom: 10px;
}

body.modal-open {
    overflow: hidden;
}

/* Neumorphic styling for the modal */
.modal-content {
    border-radius: 15px;
    background: #232323;
    box-shadow: 
        20px 20px 60px #1d1d1d,
        -20px -20px 60px #292929,
        inset 0 0 0 0 #1d1d1d,
        inset 0 0 0 0 #292929;
}

/* Styling for input with prefix */
.input-with-prefix {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    overflow: hidden;
}

.input-prefix {
    padding: 12px;
    background-color: #333;
    color: #99948A;
    font-family: monospace;
    border-right: 1px solid #3a3a3a;
}

.input-with-prefix input {
    border: none;
    border-radius: 0;
    flex-grow: 1;
}

.input-with-prefix:focus-within {
    border-color: #FF7900;
    box-shadow: 0 0 0 2px rgba(255, 121, 0, 0.2);
}

.input-with-prefix input:focus {
    box-shadow: none;
}
