/* Modern Job Application Form Styles */
.mjam-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mjam-header-image {
    text-align: center;
    margin-bottom: 25px;
}
.mjam-header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mjam-form-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.mjam-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.mjam-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
}

.mjam-form-group input[type="text"],
.mjam-form-group input[type="email"],
.mjam-form-group input[type="tel"],
.mjam-form-group input[type="url"],
.mjam-form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mjam-form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}

.mjam-required {
    color: #e74c3c;
}

.mjam-divider {
    border: 0;
    height: 1px;
    background-color: #ecf0f1;
    margin: 30px 0;
}

.mjam-optional-text {
    text-align: center;
    color: #7f8c8d;
    margin-top: -20px;
    margin-bottom: 20px;
}

.mjam-captcha-group input {
    max-width: 100px;
}

.mjam-submit-button {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mjam-submit-button:hover {
    background-color: #2980b9;
}

.mjam-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid;
}

.mjam-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.mjam-error {
    background-color: #fce4e4;
    border-color: #e74c3c;
    color: #c0392b;
}


/* Responsive */
@media (max-width: 600px) {
    .mjam-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Styles for dismissible notice */
.mjam-notice {
    position: relative;
    padding-right: 40px; /* Make space for the close button */
}

.mjam-notice-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    color: #c0392b;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mjam-notice-close:hover {
    opacity: 1;
}


/* --- Styles for Privacy Checkbox --- */
.mjam-form-group input[type="checkbox"] {
    width: auto; /* Override default 100% width for inputs */
    margin-right: 10px;
    margin-top: 5px; /* Helps with vertical alignment */
    flex-shrink: 0; /* Prevents the checkbox from shrinking on small screens */
}

.mjam-form-group .mjam-checkbox-label {
    font-size: 14px;
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
}

/* Target the form group containing the checkbox to align items */
.mjam-form-group:has(input[type="checkbox"]) {
     display: flex;
     flex-direction: row;
     align-items: flex-start;
     gap: 5px;
}