.newton-noscript-warning {
    background-color: #dc3545;
    color: #f6f6f7;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid ##dc3545;
    border-radius: 11px;
    text-align: left;;
}

.newton-messages-container {
    min-height: 65px; /* Space for messages */
    position: relative;
    margin: 20px 0 10px;
}
.newton-message { 
    padding: 10px 15px; 
    margin: 0; /* Remove margin since container handles spacing */
    border-radius: 13px; 
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.newton-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.newton-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.newton-message.info { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }
.newton-buttons { margin-top: 20px; }
.newton-buttons button { margin-right: 10px; }
#newton-file-input { display: none; }

/* Job Details Styles */
.job-details {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 13px;
    margin-bottom: 25px;
}
.job-details h2 {
    margin-top: 0;
    color: #495057;
    margin-bottom: 15px;
}
.job-detail-item {
    margin-bottom: 10px;
}
.job-detail-item strong {
    color: #495057;
    display: inline-block;
    min-width: 150px;
}
.job-detail-value {
    color: #212529;
}

/* Section Separator */
.section-separator {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 30px 0;
}

/* Form Layout */
.form-row {
    display: flex;
    margin: 0 -10px 20px;
    clear: both;
}
.form-row:last-child {
    margin-bottom: 0;
}
.form-field-half {
    flex: 0 0 50%;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
}
.form-field-half input,
.form-field-half textarea,
.form-field-half select {
    width: 100%;
    box-sizing: border-box;
}
.form-field-half textarea {
    min-height: 100px;
}
.form-field-half p {
    margin-bottom: 20px;
}
.form-field-half p:last-child {
    margin-bottom: 0;
}

/* Education Section */
.education-entry {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}
.education-entry:last-child {
    margin-bottom: 20px;
    border-bottom: none;
}
.add-education {
    margin-bottom: 20px;
}
.danger-button {
    background-color: #dc3545;
    color: #f6f6f7;
}
.danger-button:hover {
    background-color: #c82333;
}
.modify-button {
    background-color: #757a8c;
    color: #f0f0f1;
}
.modify-button:hover {
    background-color: #f6f7f7;
    color: #2c3338;
}
.text-button {
    background-color: #f8f9fa;
    color: #2c3338;
    text-decoration: underline;
}
.text-button:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

/* Registration Section */
.registration-entry {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}
.registration-entry:last-child {
    margin-bottom: 20px;
    border-bottom: none;
}
.add-registration {
    margin-bottom: 20px;
}
.section-description {
    margin-bottom: 20px;
    color: #666;
}

/* Current Employment Section */
.current-employment {
    margin-bottom: 30px;
}

.checkbox-group p {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 1.5em;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 13px;
    transition: background-color 0.2s;
}

/* Specific styling for multiple checkboxes */
.checkbox-group.multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 13px;
    transition: background-color 0.2s;
}

.checkbox-group.multiple .checkbox-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-bottom: 0;;
}

@media screen and (max-width: 767px) {
    .checkbox-group.multiple {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkbox-group.multiple .checkbox-item {
        width: 100%;
    }
}

.checkbox-group p:hover {
    background: #f0f0f0;
}

.checkbox-group .signature-name
{
    margin-top: 11px;
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0;
    margin-top: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    accent-color: #2271b1;
}

.checkbox-group label {
    flex: 1;
    cursor: pointer;
    line-height: 1.6;
    font-size: 1.1em;
    padding-top: 5px;
}

.checkbox-group p:hover {
    background: #f0f0f0;
}

.checkbox-group .signature-name
{
    margin-top: 11px;
    width: 100%;
}

.checkbox-group label {
    flex: 1;
    cursor: pointer;
    line-height: 1.6;
    font-size: 1.1em;
    padding-top: 5px;
}

.newton-form textarea {
    line-height: 1.5;
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    .form-row {
        flex-direction: column;
        margin: 0 0 20px;
    }
    .form-field-half {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    .form-field-half:last-child {
        margin-bottom: 0;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        width: 100% !important;
    }
}
