
/* =========================================
   HOW TO VOTE – TARNEIT
   ========================================= */

.htv-section {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #071426;
}

.htv-card {
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(7, 20, 38, 0.09);
}

/* HEADER */

.htv-top {
    text-align: center;
    background: #071426;
    color: #ffffff;
    padding: 35px 20px;
}

.htv-label {
    display: inline-block;
    color: #8BE35A;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.htv-top h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 12px 0;
    font-weight: 900;
}

.htv-subtitle {
    margin: 0;
    font-size: 18px;
    color: #e3eaf2;
}

/* FRONT AND BACK FLYER GALLERY */

.htv-flyers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    padding: 35px;
    background: #f2f5f8;
}

.htv-flyer {
    min-width: 0;
    text-align: center;
    background: #ffffff;
    padding: 15px;
    border: 1px solid #dce3eb;
    border-radius: 14px;
}

.htv-flyer h3 {
    color: #071426;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 5px 0 15px;
}

.htv-flyer a {
    display: block;
    line-height: 0;
}

.htv-flyer img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 7px;
    transition: transform 0.2s ease;
}

.htv-flyer a:hover img {
    transform: scale(1.015);
}

.htv-flyer p {
    margin: 12px 0 0;
    color: #536273;
    font-size: 13px;
}

/* CANDIDATE INFORMATION */

.htv-candidate-info {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e4e9ef;
}

.htv-independent {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #315b24;
}

.htv-candidate-info h3 {
    margin: 10px 0 3px;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    color: #071426;
}

.htv-for-tarneit {
    margin: 0 0 15px;
    font-size: 18px;
    color: #536273;
}

.htv-vote-one {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #8BE35A;
    color: #071426;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 900;
}

.htv-vote-one span {
    font-size: 19px;
}

.htv-vote-one strong {
    font-size: 38px;
    line-height: 1;
}

/* MAIN MESSAGE */

.htv-message {
    padding: 30px 35px;
    text-align: center;
    background: #f7faf5;
    border-bottom: 1px solid #e3ebdf;
}

.htv-message h3 {
    margin: 0 0 12px;
    font-size: 25px;
    color: #071426;
}

.htv-message p {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 16px;
}

/* THREE STEPS */

.htv-steps {
    padding: 35px;
}

.htv-steps > h3 {
    text-align: center;
    font-size: 25px;
    font-weight: 900;
    margin: 0 0 25px;
    color: #071426;
}

.htv-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    margin-bottom: 14px;
    background: #f5f7fa;
    border: 1px solid #e4e9ef;
    border-radius: 12px;
}

.htv-step-number {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8BE35A;
    color: #071426;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
}

.htv-step h4 {
    margin: 0 0 7px;
    font-size: 18px;
    color: #071426;
}

.htv-step p {
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
    color: #455468;
}

/* OPEN PREFERENCES */

.htv-open-ticket {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0 35px 30px;
    padding: 25px;
    background: #071426;
    color: #ffffff;
    border-radius: 14px;
}

.htv-open-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #8BE35A;
    color: #071426;
    font-size: 23px;
    font-weight: 900;
}

.htv-open-ticket h3 {
    margin: 0 0 8px;
    color: #8BE35A;
    font-size: 20px;
    font-weight: 900;
}

.htv-open-ticket p {
    margin: 0;
    line-height: 1.65;
    font-size: 15px;
    color: #ffffff;
}

/* IMPORTANT REMINDER */

.htv-reminder {
    margin: 0 35px 30px;
    padding: 22px;
    background: #fff8e8;
    border-left: 5px solid #e0a52e;
    border-radius: 8px;
    color: #3b3425;
    line-height: 1.7;
    font-size: 15px;
}

.htv-reminder strong {
    display: block;
    margin-bottom: 6px;
    color: #8b5a00;
    font-size: 16px;
}

.htv-reminder p {
    margin: 0;
}

/* FOOTER */

.htv-footer {
    padding: 30px 20px;
    text-align: center;
    background: #071426;
    color: #ffffff;
}

.htv-slogan {
    margin: 0 0 10px;
    color: #8BE35A;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.htv-callout {
    margin: 0 0 20px;
    font-size: clamp(19px, 3vw, 27px);
    font-weight: 900;
}

.htv-authorisation {
    margin: 0;
    color: #d5dce5;
    font-size: 12px;
    line-height: 1.5;
}

/* PAGE ACTIONS */

.htv-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.htv-print-btn,
.htv-back-link {
    display: inline-block;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.htv-print-btn {
    background: #8BE35A;
    color: #071426;
}

.htv-back-link {
    background: #071426;
    color: #ffffff;
}

/* MOBILE */

@media (max-width: 700px) {

    .htv-section {
        padding: 15px 10px 30px;
    }

    .htv-flyers {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .htv-flyer {
        padding: 12px;
    }

    .htv-top {
        padding: 28px 15px;
    }

    .htv-subtitle {
        font-size: 15px;
    }

    .htv-message,
    .htv-steps {
        padding: 25px 18px;
    }

    .htv-message h3 {
        font-size: 21px;
    }

    .htv-step {
        padding: 15px;
        gap: 12px;
    }

    .htv-open-ticket {
        margin: 0 18px 22px;
        padding: 18px;
    }

    .htv-reminder {
        margin: 0 18px 22px;
        padding: 18px;
    }

    .htv-actions {
        flex-direction: column;
    }

    .htv-print-btn,
    .htv-back-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* PRINT */

@media print {

    @page {
        size: A4;
        margin: 10mm;
    }

    body {
        background: #ffffff !important;
    }

    .htv-section {
        max-width: 100%;
        padding: 0;
    }

    .htv-card {
        box-shadow: none;
        border: 1px solid #cccccc;
    }

    .htv-actions {
        display: none !important;
    }

    .htv-flyers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
        gap: 10px;
    }

    .htv-flyer {
        padding: 6px;
    }

    .htv-flyer img {
        max-height: 420px;
        object-fit: contain;
    }

    .htv-step,
    .htv-open-ticket,
    .htv-reminder {
        break-inside: avoid;
    }
}


/* =========================================
   FIX: SHOW COMPLETE FRONT AND BACK FLYERS
   ========================================= */

/* Do not crop either flyer */
.htv-photo,
.htv-flyer img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Allow the full image to display */
.htv-candidate,
.htv-flyer,
.htv-flyer a {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Display the two flyers side by side */
.htv-flyers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 25px;
    overflow: visible !important;
}

.htv-flyer img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Mobile: stack the complete flyers */
@media (max-width: 700px) {
    .htv-flyers {
        grid-template-columns: 1fr !important;
    }

    .htv-flyer img {
        width: 100% !important;
        height: auto !important;
    }
}



/* TWO FLYER IMAGES - FULL IMAGE, NO CROPPING */

.htv-flyer-images {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    overflow: visible !important;
    margin: 25px auto;
}

.htv-flyer-images img {
    display: block !important;
    flex: 1 1 0 !important;
    width: calc(50% - 9px) !important;
    min-width: 0 !important;
    max-width: 50% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
    border-radius: 10px;
}

/* Mobile layout */
@media (max-width: 600px) {
    .htv-flyer-images {
        gap: 8px;
    }

    .htv-flyer-images img {
        width: calc(50% - 4px) !important;
        max-width: 50% !important;
    }
}

