/*
 * faq.css
 * Combined reviewed stylesheet - 6 September 2026.
 *
 * Native details/summary FAQ accordion plus all instructional image,
 * booking walkthrough, declaration, document-example and FAQ map styling.
 *
 * The FAQ accordion styling is also exposed as a reusable sitewide Q&A
 * component through:
 *
 *   .qa
 *   .qaitem
 *   .qaheader
 *   .qacontent
 *
 * Existing FAQ markup using .faq / .faqitem / .faqheader / .content
 * continues to work unchanged.
 *
 * This replaces:
 *
 *   engine/css/faq.css
 *   engine/css/faq-images.css
 *
 * faq-images.css can therefore be removed once all references to it
 * have been removed from the PHP pages.
 */


/* ========================================================================
   FAQ / Q&A WRAPPERS
   ======================================================================== */

#newfaq {
    width: 100%;
}

.faq,
.qa {
    width: 100%;
    border: 0;
}


/* ========================================================================
   NATIVE FAQ / Q&A ACCORDION

   Matches the cleaner Q&A presentation used on the location pages.
   ======================================================================== */

.faqitem,
.qaitem {
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

.faqitem:last-child,
.qaitem:last-child {
    border-bottom: 1px solid #ddd;
}

.faqitem .faqheader,
.qaitem .qaheader {
    display: list-item;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #000;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
}

/*
 * The browser's native disclosure marker is deliberately retained.
 * This mirrors the Q&A styling used on the location pages.
 */

.faqitem .content,
.qaitem .qacontent {
    padding: 0;
    margin: 8px 0 2px;
    background: transparent;
}

.faqitem .content > :first-child,
.qaitem .qacontent > :first-child {
    margin-top: 0;
}

.faqitem .content > :last-child,
.qaitem .qacontent > :last-child {
    margin-bottom: 0;
}

.faqitem .faqheader:focus-visible,
.qaitem .qaheader:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

.faqitem .content a,
.qaitem .qacontent a {
    font-weight: 700;
}

/* ========================================================================
   GENERAL FAQ STYLES
   ======================================================================== */

.bold {
    font-weight: 700;
}

.title {
    padding: 10px;
    background: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px #000 solid;
    border-bottom: 1px #000 solid;
    margin: 0 auto 10px 0;
    text-align: left;
	font-weight: bold;
}


/* ========================================================================
   DEMONSTRATION / INFORMATION BOXES
   ======================================================================== */

.demobox {
    display: flex;
    flex-direction: row;
    margin: 10px auto;
}

.demoboxt {
    display: flex;
    flex-direction: column;
    margin: 10px auto;
    align-items: center;
}

.demoboxouter {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    padding: 5px;
    margin: 0 3px;
}

.demowidth60 {
    width: 60%;
}

.demoboxleft,
.demoboxright {
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    display: flex;
}

.demoboxleft img,
.demoboxright img {
    vertical-align: middle;
    border: 1px solid gray;
}

.demoboxleftinner {
    display: flex;
    flex-direction: column;
}

.demoboxleftinnertext {
    font-size: 15px;
    line-height: 20px;
    padding: 0 10px;
}

.demoboxleftinnertext a:active,
.demoboxleftinnertext a:link,
.demoboxleftinnertext a:visited {
    color: #ff0000;
    font-weight: 700;
}

.demoboxleftinnertext a:focus,
.demoboxleftinnertext a:hover {
    color: #000;
    font-weight: 700;
}


/* ========================================================================
   FULL-WIDTH DEMONSTRATION IMAGE
   ======================================================================== */

.demoboxfull {
    width: 100%;
    display: flex;
    justify-content: center;
}

.demoboxfull img {
    max-width: 100%;
    height: auto;
}


/* ========================================================================
   BOOKING / DECLARATION IMAGES
   ======================================================================== */

.booking1 {
    min-width: 300px;
    width: 100%;
    height: auto;
}

.booking2 {
    width: 100%;
    height: auto;
}

.booking4 {
    min-width: 600px;
    width: 100%;
    height: auto;
}


/* ========================================================================
   DOCUMENT / LICENCE / ID EXAMPLE IMAGES
   ======================================================================== */

.photos {
    display: flex;
    width: 100%;
    flex-direction: row;
    margin: 1% 0 2%;
}

.photo2 {
    display: flex;
}

.photo1 {
    position: relative;
    width: 48%;
    margin: 0 1%;
    box-sizing: border-box;

    text-align: center;
    list-style: none;

    border: 12px solid #fff;
    background: #fff;
    box-shadow: 0 0 15px 0 #555;

    transition: all 1s ease;
}

.photo1:nth-child(1) {
    transform: rotate(-5deg);
}

.photo1:nth-child(2) {
    transform: rotate(5deg);
}

.photo1 img {
    width: 100%;
    height: auto;
}

.photos p {
    margin: 0 20px 0 0;
    font-weight: 700;
}

.yes {
    width: 10%;
    position: absolute;
    bottom: -7px;
    right: 10px;
}

.yes img {
    width: 160%;
    height: auto;
}


/* ========================================================================
   FAQ MAP
   ======================================================================== */

#faqmapouter,
.faqmapouter {
    display: flex;
    flex-direction: column;
}

.faqmap {
    border: 0 solid gray;
    margin: 0 -1% 2%;
    float: left;
    line-height: 18px;
    font-size: 12px;
    text-align: justify;
    width: 102%;
    height: 500px;
}


/* ========================================================================
   SHARED FAQ / BOOKING INFORMATION PAGE RULES
   ======================================================================== */

.booking-section {
    margin-top: 30px;
}

.booking-intro {
    margin-bottom: 20px;
}

.dvla-video {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
}


/*
.faq-js-warning {
    margin: 10px auto;
    padding: 10px 25px;
    border: 2px solid gray;
    background: #faebd7;
}
*/


.faq-index {
    margin-bottom: 25px;
}

.faq-index ul {
    list-style-type: none;
}


/* ========================================================================
   PRINT
   ======================================================================== */

@media print {

    .faqmap {
        height: 500px;
        margin: 0;
    }

    /*
     * Print all Q&A answers in full even if an item is closed on screen.
     */
    .faqitem .content,
    .qaitem .qacontent {
        display: block !important;
    }

}


/* ========================================================================
   RESPONSIVE - 1000PX
   ======================================================================== */

@media screen and (max-width: 1000px) {

    .demobox {
        flex-direction: column;
    }

    .demoboxouter {
        width: 100%;
        box-sizing: border-box;
    }

    .booking4 {
        min-width: 400px;
    }

}


/* ========================================================================
   RESPONSIVE - 800PX
   ======================================================================== */

@media screen and (max-width: 800px) {

    .photos {
        flex-direction: column;
    }

    .photo1 {
        width: 46%;
        margin: 2%;
    }

}


/* ========================================================================
   RESPONSIVE - 750PX
   ======================================================================== */

@media screen and (max-width: 750px) {

    .booking4 {
        min-width: 300px;
    }

}


/* ========================================================================
   RESPONSIVE - 676PX
   ======================================================================== */

@media screen and (max-width: 676px) {

    .demoboxouter {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .demowidth60 {
        width: 100%;
    }

    .demoboxleftinnertext {
        margin: 0 auto 40px;
    }

    hr {
        display: none;
    }

    .booking1 {
        max-width: 300px;
        width: auto;
    }

    .booking2 {
        max-width: 600px;
    }

    .booking4 {
        max-width: 400px;
        min-width: 0;
    }

}


/* ========================================================================
   RESPONSIVE - 450PX
   ======================================================================== */

@media screen and (max-width: 450px) {

    .booking1 {
        max-width: 200px;
        min-width: 0;
    }

    .booking2 {
        max-width: 400px;
    }

    .booking4 {
        max-width: 300px;
        min-width: 0;
        width: auto;
    }

}
