/* =========================================================
   Deep Industries Limited - Consent, Cookie Notice & Legal pages
   Brand: gold #d9a640 / dark #111 / Montserrat
   ========================================================= */

/* ---------- Consent checkbox (injected before every form's submit button) ---------- */
.consent-check {
    display: block;
    clear: both;
    width: 100%;
    margin: 6px 0 16px;
    text-align: left;
    font-family: 'Montserrat-Regular', Arial, sans-serif;
}
.consent-check:after { content: ""; display: table; clear: both; }
.consent-check label.consent-label {
    display: block;
    position: relative;
    margin: 0;
    padding-left: 28px;
    font-family: 'Montserrat-Regular', Arial, sans-serif;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
    cursor: pointer;
}
.consent-check input.consent-box {
    position: absolute;
    left: 0;
    top: 2px;
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
    accent-color: #d9a640;
}
.consent-check a.consent-link {
    color: #d9a640;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}
.consent-check a.consent-link:hover { color: #b8862a; }
.consent-check .consent-error {
    display: none;
    margin: 6px 0 0 28px;
    font-size: 13px;
    font-weight: bold;
    color: #d93025;
}
.consent-check.has-error .consent-error { display: block; }
.consent-check.has-error input.consent-box { outline: 2px solid #d93025; outline-offset: 1px; }

/* compact variant for the narrow slide-out enquiry sidebar */
.right-sidebar .consent-check label.consent-label,
.right-sidebar .consent-check .consent-error { font-size: 11.5px; }

/* ---------- Consent Notice popup ---------- */
.consent-modal-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, .68);
}
.consent-modal-overlay.open { display: flex; }
.consent-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 740px;
    max-height: 90vh;
    background: #fff;
    border-top: 4px solid #d9a640;
    border-radius: 6px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .45);
    font-family: 'Montserrat-Regular', Arial, sans-serif;
    outline: none;
}
.consent-modal-head { padding: 18px 26px 12px; border-bottom: 1px solid #eee; }
.consent-modal-head h3 {
    margin: 0;
    font-family: 'Montserrat-Bold', Arial, sans-serif;
    font-size: 22px;
    color: #111;
}
.consent-modal-body {
    padding: 16px 26px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    text-align: left;
}
.consent-modal-body p { margin: 0 0 10px; text-align: left; }
.consent-modal-body h4 {
    margin: 18px 0 6px;
    font-family: 'Montserrat-SemiBold', Arial, sans-serif;
    font-size: 15px;
    color: #111;
}
.consent-modal-body ul { margin: 0 0 10px; padding-left: 20px; }
.consent-modal-body ul li { margin-bottom: 4px; }
.consent-modal-foot {
    padding: 14px 26px;
    border-top: 1px solid #eee;
    text-align: right;
}
.consent-modal-foot button {
    display: inline-block;
    min-width: 110px;
    margin-left: 10px;
    padding: 10px 22px;
    font-family: 'Montserrat-SemiBold', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.consent-modal-foot .consent-accept { background: #d9a640; border: 1px solid #d9a640; color: #fff; }
.consent-modal-foot .consent-accept:hover { background: #fff; color: #d9a640; }
.consent-modal-foot .consent-close { background: #fff; border: 1px solid #999; color: #444; }
.consent-modal-foot .consent-close:hover { background: #444; border-color: #444; color: #fff; }

/* ---------- Cookie notice banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100000;
    padding: 16px 0;
    background: #111;
    border-top: 3px solid #d9a640;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .35);
    color: #e6e6e6;
    font-family: 'Montserrat-Regular', Arial, sans-serif;
}
.cookie-banner .cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}
.cookie-banner .cookie-text { flex: 1 1 440px; margin-right: 24px; }
.cookie-banner .cookie-text h4 {
    margin: 0 0 4px;
    font-family: 'Montserrat-Bold', Arial, sans-serif;
    font-size: 16px;
    color: #d9a640;
}
.cookie-banner .cookie-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #e6e6e6;
}
.cookie-banner .cookie-text a { color: #d9a640; text-decoration: underline; }
.cookie-banner .cookie-text a:hover { color: #fff; }
.cookie-banner .cookie-actions { flex: 0 0 auto; padding-top: 4px; }
.cookie-banner .cookie-actions button {
    display: inline-block;
    min-width: 100px;
    margin: 4px 10px 4px 0;
    padding: 10px 20px;
    font-family: 'Montserrat-SemiBold', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.cookie-banner .cookie-accept { background: #d9a640; border: 1px solid #d9a640; color: #fff; }
.cookie-banner .cookie-accept:hover { background: #fff; color: #d9a640; }
.cookie-banner .cookie-reject { background: transparent; border: 1px solid #aaa; color: #e6e6e6; }
.cookie-banner .cookie-reject:hover { background: #e6e6e6; color: #111; }
/* while the banner is on screen: keep page content + the slide-out enquiry form reachable */
body.has-cookie-banner { padding-bottom: var(--cookie-h, 120px); }
body.has-cookie-banner .right-sidebar { top: 128px !important; }
body.has-cookie-banner .right-sidebar .contact-form {
    max-height: calc(100vh - 128px - var(--cookie-h, 120px) - 24px);
    overflow-y: auto;
}
@media (max-width: 600px) {
    .consent-modal-body { font-size: 13px; line-height: 1.6; }
    .cookie-banner { padding: 12px 0; }
    .cookie-banner .cookie-text { margin-right: 0; }
    .cookie-banner .cookie-actions { width: 100%; }
    .cookie-banner .cookie-actions button { width: calc(50% - 8px); min-width: 0; }
    .consent-modal-body, .consent-modal-head, .consent-modal-foot { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Footer legal links (added in include/footer.js) ---------- */
footer .footer-legal {
    padding: 4px 0 10px;
    text-align: center;
    font-size: 13px;
}
footer .footer-legal a { color: #acabab; padding: 0 4px; }
footer .footer-legal a:hover { color: #d9a640; }
footer .footer-legal span { color: #666; padding: 0 6px; }

/* ---------- Legal pages (Privacy / Terms / Recruitment Notice) ---------- */
.banner-inner.legal-banner { min-height: 170px; background: #1c1c1c; }
.legal-page .legal-tabs { margin: 0 0 32px; padding: 0; list-style: none; }
.legal-page .legal-tabs li { display: inline-block; margin: 0 8px 10px 0; }
.legal-page .legal-tabs a {
    display: block;
    padding: 9px 18px;
    border: 1px solid #d9a640;
    border-radius: 30px;
    font-size: 14px;
    color: #d9a640;
    transition: background .2s, color .2s;
}
.legal-page .legal-tabs a:hover,
.legal-page .legal-tabs a.active { background: #d9a640; color: #fff; text-decoration: none; }
.legal-page h2.legal-title {
    display: inline-block;
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d9a640;
    font-size: 26px;
}
.legal-page .legal-section { margin-bottom: 38px; }
.legal-page ul.legal-list { margin: 0; padding: 0; list-style: none; }
.legal-page ul.legal-list li {
    position: relative;
    margin-bottom: 10px;
    padding: 13px 18px 13px 42px;
    border-left: 3px solid #d9a640;
    background: #f7f7f7;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}
.legal-page ul.legal-list li:before {
    content: "\f00c";
    position: absolute;
    left: 15px;
    top: 14px;
    font-family: FontAwesome;
    font-size: 13px;
    color: #d9a640;
}
.legal-page .legal-note { margin-top: 10px; font-size: 14px; color: #666; }
.legal-page .legal-note a { color: #d9a640; text-decoration: underline; }
.career-privacy-note { margin: 0 0 18px; font-size: 14px; color: #666; }
.career-privacy-note a { color: #d9a640; text-decoration: underline; }
