/* Modal Styles */
.wjr-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 0px;
    box-sizing: border-box;
}

.wjr-modal-content {
    background-color: #fff;
    margin: 2.5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    box-sizing: border-box;
    position: relative;
    /*overflow: scroll;*/
    max-height: 90%;
    overflow-x: hidden;
}

.wjr-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.wjr-close:hover,
.wjr-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.wjr-modal h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Form Styles */
#wjr-resume-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#wjr-resume-form label {
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 5px;
}

#wjr-resume-form input,
#wjr-resume-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Align label and input in one line for larger screens */
@media (min-width: 768px) {
    .wjr-resume-form-row {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        flex-wrap: wrap;
    }

    .wjr-resume-form-row label {
        width: 30%; /* Label takes up 30% */
    }

    .wjr-resume-form-row input,
    .wjr-resume-form-row textarea {
        width: 65%; /* Input and textarea take up 65% */
    }
}

/* Submit Button Styles */
#wjr-resume-form input[type="submit"] {
    /*background-color: #0073aa;*/
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

/*#wjr-resume-form input[type="submit"]:hover {
    background-color: #005f8a;
}*/

/* Responsiveness */
@media (max-width: 768px) {
    .wjr-modal-content {
        width: 80%;
        padding: 12px;
    }

    #wjr-resume-form input,
    #wjr-resume-form textarea {
        font-size: 12px; /* Smaller font size for smaller screens */
    }

    #wjr-resume-form input[type="submit"] {
        font-size: 14px;
    }

    /* Stack label and input in a column on mobile screens */
    .wjr-resume-form-row {
        flex-direction: column;
    }

    .wjr-resume-form-row label,
    .wjr-resume-form-row input,
    .wjr-resume-form-row textarea {
        width: 100%; /* Full width on mobile */
    }
}

@media (max-width: 480px) {
    .wjr-close {
        font-size: 20px;
    }

    #wjr-resume-form input,
    #wjr-resume-form textarea {
        font-size: 12px;
    }

    #wjr-resume-form input[type="submit"] {
        font-size: 14px;
        padding: 8px;
    }
}
