/* ===== Job Detail Page Styles - Dark Theme (hiring-force.com style) ===== */

/* Dark theme variables */
.job-detail-page {
    --hf-bg: #181a1b;
    --hf-card-bg: #1e2021;
    --hf-text: #e0e0e0;
    --hf-text-muted: #9ca3af;
    --hf-text-heading: #ffffff;
    --hf-accent: #22c55e;
    --hf-accent-hover: #16a34a;
    --hf-border: #2a2a2a;
    --hf-link: #22c55e;
}

/* Apply dark theme to body */
.job-detail-page {
    background: var(--hf-bg) !important;
    color: var(--hf-text);
    min-height: 100vh;
}

.job-detail-page * {
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hide header on job detail pages */
.job-detail-page .header {
    display: none;
}

/* Fixed back button - top right */
.btn-back-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    color: var(--hf-text);
    background: var(--hf-card-bg);
    box-shadow: var(--hf-text-muted) 0px 0px 0px 1px inset;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back-fixed:hover {
    background: var(--hf-accent);
    color: #fff;
    box-shadow: none;
}

/* Main Job Detail Section */
.job-detail {
    padding: 40px 20px 80px;
    background: var(--hf-bg);
    min-height: 100vh;
}

.job-detail .container {
    max-width: 700px;
    padding: 0;
}

/* Job Card */
.job-card {
    background: var(--hf-card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 0;
}

/* Job Header */
.job-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.job-logo {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.job-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--hf-text-heading);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.job-header-text .job-company {
    font-size: 15px;
    color: var(--hf-text-muted);
    margin: 0;
}

/* Image Gallery */
.job-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.job-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Meta Items */
.job-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.meta-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    align-items: flex-start;
}

.meta-item svg {
    display: none;
}

.meta-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--hf-text-muted);
}

.meta-label svg {
    display: block !important;
    width: 18px;
    height: 18px;
    color: var(--hf-text-muted);
    flex-shrink: 0;
}

.meta-value {
    font-size: 14px;
    color: var(--hf-text);
    line-height: 1.5;
}

/* CTA Button */
.btn-apply-main {
    display: block;
    width: 100%;
    background: var(--hf-accent);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 35px;
}

.btn-apply-main:hover {
    background: var(--hf-accent-hover);
}

/* Job Sections */
.job-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--hf-border);
}

.job-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.job-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hf-text-heading);
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.job-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--hf-text);
    margin-bottom: 12px;
}

.job-section p:last-child {
    margin-bottom: 0;
}

.job-section p strong {
    color: var(--hf-text-heading);
}

/* Lists */
.benefits-list,
.task-list,
.requirements-list,
.job-section ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.benefits-list li,
.task-list li,
.requirements-list li,
.job-section ul li {
    position: relative;
    padding-left: 0;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--hf-text);
}

.benefits-list li::before,
.task-list li::before,
.requirements-list li::before {
    display: none;
}

.benefits-list li::marker,
.task-list li::marker,
.requirements-list li::marker,
.job-section ul li::marker {
    color: var(--hf-text-muted);
}

/* Bold keywords in benefits */
.benefits-list strong,
.job-section ul strong {
    color: var(--hf-text-heading);
    font-weight: 600;
}

/* Additional Benefits */
.additional-benefits {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    color: var(--hf-text) !important;
    border-radius: 0;
}

.additional-benefits strong {
    color: var(--hf-text-heading);
}

.additional-benefits-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.additional-benefits-list li {
    font-size: 15px;
    color: var(--hf-text);
    margin-bottom: 8px;
}

.additional-benefits-list li strong {
    font-weight: 600;
    color: var(--hf-text-heading);
}

/* Contact Section */
.job-contact {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--hf-border);
}

.job-contact h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hf-text-heading);
    margin-bottom: 15px;
}

.job-contact p {
    font-size: 15px;
    color: var(--hf-text);
    margin-bottom: 10px;
    line-height: 1.6;
}

.job-contact p strong {
    color: var(--hf-text-heading);
}

.job-contact .cta-text {
    font-weight: 600;
    color: var(--hf-text-heading);
    margin-bottom: 8px;
}

.job-contact .cta-subtext {
    font-size: 14px;
    color: var(--hf-text-muted);
}

.job-contact .contact-note {
    margin-top: 15px;
    padding-left: 20px;
    border-left: none;
}

.job-contact .contact-note::before {
    content: "➤ ";
    color: var(--hf-text-muted);
}

.contact-person {
    margin-top: 20px;
}

.contact-person p {
    margin-bottom: 5px;
}

.contact-person a {
    color: var(--hf-link);
    text-decoration: underline;
}

.contact-person a:hover {
    color: var(--hf-accent-hover);
}

.closing-text {
    margin-top: 20px;
    font-weight: 600;
    color: var(--hf-text-heading);
}

/* Company Address */
.company-address {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid var(--hf-border);
    margin-top: 30px;
    font-size: 14px;
    color: var(--hf-text-muted);
}

/* Bottom CTA Button */
.bottom-cta {
    margin-top: 30px;
}

/* Footer Override */
.job-detail-page .footer {
    background: var(--hf-bg);
    padding: 30px 0;
    border-top: 1px solid var(--hf-border);
}

.job-detail-page .footer .container {
    max-width: 700px;
}

.job-detail-page .footer-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    grid-template-columns: none;
}

.job-detail-page .footer-col {
    display: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--hf-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--hf-text);
}

.footer-links span {
    color: var(--hf-border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .job-detail {
        padding: 30px 15px 60px;
    }

    .job-card {
        padding: 25px 20px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .job-header-text h1 {
        font-size: 22px;
    }

    .job-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .job-gallery img {
        height: 180px;
    }

    .meta-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .meta-label {
        font-weight: 600;
    }

    .btn-back-fixed {
        top: 15px;
        right: 15px;
        font-size: 12px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .job-card {
        padding: 20px 15px;
    }

    .job-header-text h1 {
        font-size: 20px;
    }

    .job-section h2 {
        font-size: 16px;
    }

    .btn-apply-main {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ===== Application Form Page ===== */
.apply-page .job-detail {
    padding-top: 30px;
}

.apply-form-container {
    background: var(--hf-card-bg);
    border-radius: 12px;
    padding: 30px;
}

.apply-form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hf-border);
}

.apply-form-header .job-logo {
    width: 60px;
    height: 60px;
}

.apply-form-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--hf-text-heading);
    margin: 0 0 5px 0;
}

.apply-form-header p {
    font-size: 14px;
    color: var(--hf-text-muted);
    margin: 0;
}

.apply-intro {
    font-size: 16px;
    color: var(--hf-text);
    margin-bottom: 30px;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--hf-text-heading);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--hf-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--hf-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--hf-bg);
    color: var(--hf-text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hf-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--hf-text-muted);
}

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

/* Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--hf-accent);
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    color: var(--hf-text);
}

.checkbox-group label a {
    color: var(--hf-link);
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--hf-accent);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--hf-accent-hover);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--hf-text-muted);
    margin-top: 15px;
}

@media (max-width: 768px) {
    .form-row,
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .apply-form-container {
        padding: 25px 20px;
    }
}
