/* ============================================================
   main.css
   www/stylesheets/main.css
   ============================================================ */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* -- Layout ------------------------------------------------ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -- Logo bar (above header) -------------------------------- */
.site-logo-bar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.site-logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* -- Header (red tagline bar) ------------------------------ */
.site-header {
    background: #FF0000;
    color: #fff;
    padding: 10px 0;
}

.site-tagline {
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
    text-align: center;
}

/* -- Footer ------------------------------------------------ */
.site-footer {
    background: #FF0000;
    color: #ffaaaa;
    text-align: center;
    padding: 16px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* -- Main content ------------------------------------------ */
main {
    padding: 40px 0;
}

/* -- Landing page ------------------------------------------ */
.landing-page h1 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #FF0000;
    text-align: center;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* -- Buttons ----------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.btn-survey {
    background: #FF0000;
    color: #fff;
    width: 420px;
}

.btn-survey:hover {
    background: #CC0000;
    text-decoration: none;
}

.btn-next {
    background: #2a7a2a;
    color: #fff;
    border: none;
    min-width: 160px;
}

.btn-next:hover {
    background: #358535;
}

.btn-back {
    background: #777;
    color: #fff;
    border: none;
    min-width: 120px;
}

.btn-back:hover {
    background: #555;
}

/* -- Survey intro page ------------------------------------- */
.survey-intro {
    background: #fff;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.survey-intro h1 {
    color: #FF0000;
    margin-bottom: 20px;
}

.survey-intro p {
    margin-bottom: 16px;
}

/* -- Progress indicator ------------------------------------ */
.progress-bar {
    background: #ddd;
    border-radius: 4px;
    height: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-bar-fill {
    background: #FF0000;
    height: 100%;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

/* -- Survey intro card ------------------------------------- */
.survey-intro-page {
    padding: 40px 0;
}

.intro-card {
    background: #fff;
    border-radius: 6px;
    padding: 36px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.intro-logo {
    text-align: center;
    margin-bottom: 24px;
}

.intro-logo img {
    max-width: 220px;
    height: auto;
}

.intro-card h1 {
    color: #FF0000;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.intro-card p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.intro-card .ranking-key {
    margin: 20px 0;
    padding: 16px 20px;
}

.intro-card .ranking-key ul {
    list-style: none;
    margin-top: 8px;
}

.intro-card .ranking-key ul li {
    padding: 3px 0;
}

.intro-action {
    margin-top: 28px;
    text-align: center;
}

/* -- Intro page float image -------------------------------- */
.intro-body {
    overflow: hidden; /* clearfix for the float */
}

.intro-float-img {
    float: right;
    max-width: 220px;
    height: auto;
    margin: 0 0 16px 24px;
    border-radius: 4px;
}

@media (max-width: 500px) {
    .intro-float-img {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 160px;
    }
}

/* -- Transactional driver images --------------------------- */
.driver-images {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.driver-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 80px;
    max-width: 140px;
}

.driver-image-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.driver-image-item span {
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
    text-align: center;
}

/* -- Transactional instructions block ---------------------- */
.intro-instructions {
    background: #f9f9f9;
    border-left: 4px solid #FF0000;
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* -- Transactional intro layout ---------------------------- */
.trans-intro-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.trans-driver-sidebar {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.driver-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.driver-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.driver-image-item span {
    font-size: 0.78rem;
    font-weight: bold;
    color: #555;
    text-align: center;
    padding: 2px 0 6px 0;
}

.trans-intro-body {
    flex: 1;
    min-width: 0;
}

.trans-intro-body p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.intro-logo-inline {
    margin-bottom: 16px;
}

.intro-logo-inline img {
    max-height: 50px;
    width: auto;
}

@media (max-width: 600px) {
    .trans-intro-layout {
        flex-direction: column;
    }
    .trans-driver-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .driver-image-item {
        width: 28%;
    }
}
