/* ============================================================
   QuickTechPrint — print-con.php custom styles
   Pixel-perfect recreation of quicktechprint.com/printer-con
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --canon-red: #CC0000;
    --hero-overlay-opacity: 0.94;
    --white: #FFFFFF;
    --black: #000000;
    --text-dark: #1E1E1E;
    --text-body: #000000;
    --text-muted: #4E4E4E;
    --border-light: #D6D6D6;
    --bg-light: #f8f9fa;
    --nav-hover: #ec1c24;
    --container-max: 1140px;
    --font-body: 'DM Sans', sans-serif;
    --font-heading: 'Exo 2', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-inter-tight: 'Inter Tight', sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
    position: relative;
    background: var(--white);
    z-index: 100;
    box-shadow: none;
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 72px;
}

.header-logo {
    flex: 0 0 12%;
    max-width: 12%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.site-logo {
    width: 100%;
    height: 39px;
    object-fit: contain;
}

.header-nav {
    flex: 0 0 88%;
    max-width: 88%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0 -12.5px;
}

.nav-list li {
    margin: 0 12.5px;
}

.nav-link-item {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 0;
}

.nav-link-item:hover {
    color: var(--nav-hover);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    background-color: var(--bg-light);
    background-image: url('../images/placeholder.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 20px 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--canon-red);
    opacity: var(--hero-overlay-opacity);
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

/* Left column: 63% */
.hero-left {
    flex: 0 0 63%;
    max-width: 63%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-left > * + * {
    margin-top: 30px;
}

.hero-left > *:first-child + * {
    margin-top: 30px;
}

/* Right column: ~37% */
.hero-right {
    flex: 0 0 36.651%;
    max-width: 36.651%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero text */
.hero-heading {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--white);
    text-align: start;
    margin: 0;
}

.hero-desc {
    font-family: var(--font-poppins);
    font-size: 18px;
    line-height: 1.5em;
    color: var(--white);
    text-align: start;
    margin: 0;
}

.hero-desc strong {
    font-weight: 600;
}

/* Hero image */
.hero-printer-img {
    width: 88.034%;
    max-width: 88.034%;
    height: auto;
    flex-shrink: 0;
}

/* ============================================================
   FORM
   ============================================================ */
.printer-form-wrap {
    margin-top: 30px;
}

.form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
}

.form-input-wrap {
    flex: 0 0 75%;
    max-width: 75%;
}

.form-btn-wrap {
    flex: 0 0 25%;
    max-width: 25%;
}

.printer-input {
    width: 100%;
    height: 50px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid rgba(30, 30, 30, 0.35);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.printer-input::placeholder {
    color: rgba(30, 30, 30, 0.45);
}

.printer-input:hover {
    border-color: rgba(30, 30, 30, 0.6);
}

.printer-input:focus {
    border-color: rgba(30, 30, 30, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
    outline: none;
}

.printer-btn {
    width: 100%;
    height: 50px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: var(--black);
    background: var(--white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
}

.printer-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.printer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Field-level error */
.field-error-msg {
    font-family: var(--font-body);
    font-size: 14px;
    color: #ff4444;
    padding: 4px 0 0 0;
    margin: 0;
}

/* Form-level error */
.form-error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--white);
    margin: 8px 0 0 0;
}

.form-error-msg[hidden] {
    display: none;
}

.error-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Loader dot animation */
.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   CONTENT SECTION
   ============================================================ */
.content-section {
    background: var(--white);
    padding: 70px 0;
}

.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}

.content-left {
    flex: 0 0 66%;
    max-width: 66%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    flex-shrink: 0;
}

.content-right {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-text {
    font-family: var(--font-poppins);
    font-size: 18px;
    line-height: 1.5em;
    color: var(--black);
    text-align: start;
    margin: 0;
}

.setup-img {
    width: 98.202%;
    max-width: 98.202%;
    height: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
    background: var(--white);
}

/* Footer Top */
.footer-top {
    border-top: 1px solid var(--border-light);
    background: var(--white);
    padding: 20px 0;
}

.footer-top-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
}

.footer-policies {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0;
}

.footer-disclaimers {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0;
}

.footer-box-title {
    font-family: var(--font-inter);
    font-size: 26px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
    line-height: 1.3;
}

.footer-box-desc {
    font-family: var(--font-inter-tight);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.footer-disclaimer-list {
    list-style: disc;
    padding-left: 20px;
    font-family: var(--font-inter-tight);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-disclaimer-list li {
    margin-bottom: 4px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-light);
    background: var(--white);
}

.footer-bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.footer-copyright {
    flex: 0 0 35%;
    max-width: 35%;
    align-self: center;
}

.footer-copyright p {
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--black);
    margin: 0;
}

.footer-nav {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.footer-nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    display: inline-flex;
}

.footer-nav-link {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    padding: 12px 10px;
    display: inline-block;
    transition: color 0.2s;
}

.footer-nav-link:hover {
    color: var(--nav-hover);
}

/* ============================================================
   RESPONSIVE — Tablet & Mobile (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {

    /* Header */
    .header-inner {
        justify-content: center;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        gap: 0;
    }

    .header-logo {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .header-nav {
        flex: 0 0 62%;
        max-width: 62%;
        justify-content: flex-end;
    }

    .nav-link-item {
        font-size: 14px;
    }

    /* Hero */
    .hero-section {
        padding: 50px 10px;
    }

    .hero-container {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .hero-left {
        flex: 0 0 100%;
        max-width: 100%;
        order: 1;
    }

    .hero-left > * + * {
        margin-top: 10px;
    }

    .hero-heading {
        font-size: 26px;
        text-align: center;
    }

    .hero-desc {
        font-size: 12px;
        text-align: center;
    }

    .hero-right {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
        margin-top: 20px;
        justify-content: center;
    }

    .hero-printer-img {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Form */
    .form-row {
        flex-direction: column;
    }

    .form-input-wrap,
    .form-btn-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .printer-btn {
        margin-top: 8px;
    }

    /* Content */
    .content-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .content-left {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-right {
        margin-top: 30px;
    }

    .content-text {
        font-size: 12px;
        text-align: center;
    }

    .setup-img {
        width: 100%;
        max-width: 100%;
    }

    /* Footer Top */
    .footer-top-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-policies,
    .footer-disclaimers {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    /* Footer Bottom */
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        padding: 12px 15px;
        gap: 10px;
    }

    .footer-copyright,
    .footer-nav {
        flex: 0 0 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-nav-list {
        justify-content: center;
    }
}

/* ============================================================
   RESPONSIVE — Large screens (≥ 1024px) tablet fix
   ============================================================ */
@media (max-width: 1024px) {
    .footer-policies {
        padding: 0 60px 0 60px;
    }

    .footer-box-title {
        margin-bottom: 15px;
    }

    .footer-disclaimers {
        padding: 0 60px 0 60px;
    }
}

@media (max-width: 767px) {
    .footer-policies,
    .footer-disclaimers {
        padding: 0;
    }
}

/* ============================================================
   PAGE VARIANTS — c-print-d / c-print-di / c-info
   ============================================================ */

/* Hero heading size variants */
.hero-heading--xl {
    font-size: 45px;
}

.hero-heading--md {
    font-size: 35px;
    font-weight: 600;
}

/* Hero desc size variant */
.hero-desc--lg {
    font-size: 22px;
}

/* Hero ordered list */
.hero-ordered-list {
    list-style: decimal;
    padding-left: 22px;
    font-family: var(--font-poppins);
    font-size: 22px;
    line-height: 1.5em;
    color: var(--white);
    margin: 0;
}

.hero-ordered-list li + li {
    margin-top: 10px;
}

/* Download button */
.download-btn {
    display: inline-block;
    background: var(--white);
    color: var(--canon-red);
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
    padding: 15px 37px 15px 35px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 90%, 100% { transform: translateX(0); }
    92% { transform: translateX(-4px); }
    94% { transform: translateX(4px); }
    96% { transform: translateX(-4px); }
    98% { transform: translateX(4px); }
}

.download-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--canon-red);
}

/* Content section heading (Exo 45px black) */
.content-heading {
    font-family: 'Exo', sans-serif;
    font-size: 45px;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--black);
    text-align: start;
    margin: 0;
}

/* Content bullet list */
.content-list {
    list-style: disc;
    padding-left: 22px;
    font-family: var(--font-poppins);
    font-size: 18px;
    line-height: 2em;
    color: var(--black);
    margin: 0;
}

/* ============================================================
   c-print-di — Progress bars
   ============================================================ */
.download-process-container {
    max-width: 100%;
    margin: 10px 10px;
    padding: 30px 0 0 0;
    font-family: 'Arial', sans-serif;
}

.process-title {
    color: var(--white);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-track {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill.downloading {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.progress-fill.installing {
    background: linear-gradient(90deg, #ff8c00, #ff2d00);
}

.progress-percentage {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
    margin: 10px 0 30px 0;
}

.install-error-msg {
    text-align: center;
    padding: 20px;
    background: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.install-error-msg p {
    color: #d8000c;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-poppins);
}

/* ============================================================
   c-info — Setup Failed / Error page
   ============================================================ */
.hero-section--info {
    padding: 65px 20px;
}

.hero-container--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
}

.hero-error-text {
    font-family: var(--font-poppins);
    font-size: 20px;
    line-height: 1.5em;
    color: var(--white);
    margin: 0;
}

.hero-error-img {
    width: 30.67%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-contact-text {
    font-family: 'Exo', sans-serif;
    font-size: 26px;
    line-height: 1.5em;
    color: var(--white);
    margin: 10px 0 0 0;
}

.hero-warning-text {
    font-family: 'Exo', sans-serif;
    font-size: 22px;
    line-height: 1.5em;
    color: #FFEC00;
    margin: 0;
}

/* ============================================================
   RESPONSIVE — Page variants ≤ 767px
   ============================================================ */
@media (max-width: 767px) {
    .hero-heading--xl { font-size: 26px; }
    .hero-heading--md { font-size: 22px; }
    .hero-ordered-list { font-size: 12px; }
    .download-btn { font-size: 16px; padding: 12px 24px; }
    .content-heading { font-size: 26px; }
    .content-list { font-size: 12px; }
    .hero-error-text { font-size: 14px; }
    .hero-contact-text { font-size: 18px; }
    .hero-warning-text { font-size: 15px; }
    .hero-error-img { width: 60%; }
    .process-title { font-size: 16px; }
    .progress-percentage { font-size: 14px; }
}
