/* --- General & Variables --- */
:root { 
    --primary-color: #B4121B; 
    --dark-bg: #1a1a1a; 
    --medium-bg: #222; 
    --light-text: #ccc; 
    --white-text: #fff; 
    --facebook-blue: #1877F2; 
    --success-green: #4CAF50;
    --error-red: #B4121B;
}
* { box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; margin: 0; line-height: 1.6; }

/* --- Main Page Content --- */
.jobseek-page { 
    color: var(--white-text); 
    background-color: #000; 
}
.containerJob { 
    width: 85%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 30px 0;
}
.containerJob h2 { text-align: center; font-size: 2.8em; margin-top: 50px; margin-bottom: 25px; text-transform: uppercase;}
.containerJob h3 { text-align: center; color: var(--primary-color); font-size: 2.2em; margin-top: 50px; margin-bottom: 15px; text-transform: uppercase; }
.containerJob p { text-align: center; font-size: 1.4em; margin-bottom: 5px; }
.apply-btn {
    padding-bottom: 20px; 
    color: var(--facebook-blue); 
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}
.apply-btn:hover { color: #55E2E9; }

/* --- Modal Styles --- */
.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.7);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--medium-bg);
    color: var(--light-text);
    margin: auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover, .close-btn:focus { color: var(--white-text); }

/* --- Form Styles --- */
#jobApplicationForm input[type="text"],
#jobApplicationForm input[type="email"],
#interviewForm input[type="text"],
#jobApplicationForm textarea,
#interviewForm textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: var(--white-text);
}
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 20px;
    margin: 15px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    text-transform: uppercase;
}
.btn:hover { background-color: #d82c36; }
.btn-secondary { background-color: #555; }
.btn-secondary:hover { background-color: #777; }

.status-message {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

/* --- Image Upload --- */
.upload-container { margin: 15px 0; }
.upload-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.upload-button:hover { background-color: #0056b3; }
#image-preview {
    margin-top: 10px;
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* --- Dynamic Skills & Star Rating --- */
.skill-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.skill-entry input[type="text"] { flex-grow: 1; margin: 0; }
.remove-skill-btn {
    background: #555;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 25px;
    text-align: center;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.star-rating input[type="radio"] { display: none; }
.star-rating label { font-size: 1.8em; color: #444; cursor: pointer; transition: color 0.2s; }
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: orange; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .containerJob h2 { font-size: 2em; }
    .containerJob h3 { font-size: 1.8em; }
    .containerJob p { font-size: 1.1em; }
    .modal-content { width: 95%; padding: 15px; }
    .skill-entry { flex-direction: column; align-items: stretch; gap: 5px; }
}