/* =========================================================
   BUMPYGOAT MOT CHECKER
   Solo estilos específicos de la herramienta.
   Reutiliza deliberadamente los componentes globales de
   BumpyGoat: contenedor-bumpy-body, seccion-identidad-ficha,
   titulo-principal-ficha, tag-bumpy-info, section-herramientas,
   input-bumpy-search, boton-fucsia y btn-bumpy-tool.
========================================================= */

.bg-mot-tool,
.bg-mot-tool * {
    box-sizing: border-box;
}

.bg-mot-tool [hidden] {
    display: none !important;
}

.bg-mot-tool {
    padding-top: 10px;
}

/* =========================================================
   HERO / PARTNER
========================================================= */

.bg-mot-identity {
    gap: 30px;
}

.bg-mot-hero-main {
    flex: 1 1 auto;
    min-width: 0;
}

.bg-mot-tags {
    margin-bottom: 4px;
}

.bg-mot-intro {
    max-width: 760px;
    border-left: 3px solid var(--azul-bumpy);
    padding-left: 18px;
}

.bg-mot-intro p {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}

.bg-mot-partner {
    flex: 0 0 310px;
    align-self: center;
}

.bg-mot-partner__inner {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 2px solid var(--gris-borde);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.bg-mot-partner__link:hover {
    border-color: var(--azul-bumpy);
}

.bg-mot-partner__logo.bumpy-dealer-hero__logo {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 14px;
}

.bg-mot-partner__logo.bumpy-dealer-hero__logo img {
    object-fit: contain;
    padding: 4px;
    background: #fff;
}

.bg-mot-partner__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bg-mot-partner__label,
.bg-mot-section-kicker {
    color: var(--fucsia-bumpy);
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bg-mot-partner__content strong {
    overflow: hidden;
    color: var(--azul-bumpy);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.bg-mot-partner__powered {
    margin-top: 3px;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

/* =========================================================
   HEADINGS
========================================================= */

.bg-mot-section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.bg-mot-section-heading .bg-mot-section-kicker,
.bg-mot-section-heading > .bg-mot-section-kicker {
    display: inline-block;
    margin-bottom: 6px;
}

.bg-mot-section-heading h2,
.bg-mot-info-panel h2 {
    margin: 0 0 8px;
    color: var(--azul-bumpy);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.bg-mot-section-heading p,
.bg-mot-info-panel p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.bg-mot-section-heading--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
}

/* =========================================================
   SEARCH
========================================================= */

.bg-mot-check-section {
    margin-top: 0;
    padding-top: 42px;
    padding-bottom: 44px;
}

.bg-mot-check-form {
    max-width: 820px;
}

.bg-mot-search-capsule {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px 10px 22px;
    border: 2px solid var(--gris-borde);
    border-radius: 100px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(27, 68, 140, 0.10);
}

.bg-mot-search-field {
    flex: 1 1 auto;
    min-width: 0;
}

.bg-mot-search-field .field-label {
    display: block;
    margin-bottom: 1px;
    color: #777;
    font-family: "Courier New", monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#bg-mot-registration.input-bumpy-search {
    min-height: 28px;
    color: var(--azul-bumpy);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bg-mot-check-button.boton-fucsia {
    flex: 0 0 auto;
    min-height: 50px;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
}

.bg-mot-check-button:disabled,
.bg-mot-reminder-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.bg-mot-form-message {
    min-height: 20px;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.bg-mot-form-message.is-error {
    color: #8f1f1f;
}

.bg-mot-form-message.is-success {
    color: #176b3a;
}

/* =========================================================
   RESULT SUMMARY
========================================================= */

.bg-mot-result-section {
    padding: 38px 30px 34px;
}

.bg-mot-summary-card {
    position: relative;
    padding: 26px 28px;
    border: 2px solid var(--azul-bumpy);
    background: #fff;
    box-shadow: 6px 6px 0 var(--azul-bumpy);
}

.bg-mot-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--fucsia-bumpy);
}

.bg-mot-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-left: 8px;
}

.bg-mot-vehicle-name {
    margin-top: 5px;
    color: var(--azul-bumpy);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.6px;
}

.bg-mot-plate {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border: 2px solid #111;
    border-radius: 5px;
    background: #f7d716;
    color: #111;
    font-family: "Courier New", monospace;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.bg-mot-status {
    z-index: 2;
}

.bg-mot-key-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-left: 8px;
}

.bg-mot-key-item {
    padding: 14px 15px;
    border: 1px solid var(--gris-borde);
    background: #f7faff;
}

.bg-mot-key-item span,
.bg-mot-key-item strong {
    display: block;
}

.bg-mot-key-item span {
    margin-bottom: 5px;
    color: #777;
    font-family: "Courier New", monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.bg-mot-key-item strong {
    color: var(--azul-bumpy);
    font-size: 16px;
    font-weight: 900;
}

/* =========================================================
   GARAGE CTA
========================================================= */

.bg-mot-garage-cta {
    margin: 22px 0 0 8px;
    padding: 16px 18px;
    border: 1px dashed var(--fucsia-bumpy);
    background: rgba(233, 30, 99, 0.035);
}

.bg-mot-garage-cta strong {
    display: block;
    margin-bottom: 10px;
    color: var(--azul-bumpy);
    font-weight: 900;
}

.bg-mot-garage-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bg-mot-garage-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 2px solid var(--gris-borde);
    border-radius: 14px;
    background: #fff;
    color: var(--azul-bumpy);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-mot-garage-links a:hover {
    border-color: var(--fucsia-bumpy);
    color: var(--fucsia-bumpy);
    box-shadow: 4px 4px 0 var(--fucsia-bumpy);
    transform: translate(-2px, -2px);
}

/* =========================================================
   REMINDER
========================================================= */

.bg-mot-reminder-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.28fr);
    gap: 28px;
    align-items: center;
    margin: 12px 30px 10px;
    padding: 20px 22px;
    border: 2px solid var(--azul-bumpy);
    background: #fff;
    box-shadow: 5px 5px 0 rgba(27, 68, 140, 0.14);
}

.bg-mot-reminder-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--fucsia-bumpy);
}

.bg-mot-reminder-copy {
    min-width: 0;
    padding-left: 7px;
}

.bg-mot-reminder-copy h2 {
    margin: 4px 0 5px;
    color: var(--azul-bumpy);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.bg-mot-reminder-copy p {
    margin: 0;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.bg-mot-reminder-form {
    min-width: 0;
}

.bg-mot-reminder-capsule {
    width: 100%;
    margin: 0;
}

.bg-mot-reminder-email-field {
    flex: 1 1 auto;
    min-width: 0;
}

#bg-mot-email.input-bumpy-search {
    min-height: 28px;
    color: var(--azul-bumpy);
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}

.bg-mot-reminder-button.boton-fucsia {
    flex: 0 0 auto;
    min-height: 48px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}

.bg-mot-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 4px 0 !important;
    color: #777 !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    line-height: 1.4;
}

.bg-mot-consent input {
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--fucsia-bumpy);
}

.bg-mot-reminder-card .bg-mot-form-message {
    min-height: 0;
    margin: 6px 4px 0;
    font-size: 11px;
}

.bg-mot-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

/* =========================================================
   TOO SOON / NOTICES
========================================================= */

.bg-mot-info-panel {
    margin: 30px;
    padding: 20px 22px;
    border: 2px solid var(--gris-borde);
    border-left: 6px solid var(--fucsia-bumpy);
    background: #fff;
}

.bg-mot-notice {
    margin: 18px 30px 0;
    padding: 13px 15px;
    border: 1px solid var(--gris-borde);
    border-left: 4px solid var(--azul-bumpy);
    background: #f7faff;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.bg-mot-notice--success {
    border-left-color: var(--bumpy-green);
    background: var(--bumpy-green-soft);
    color: #176b3a;
}

.bg-mot-notice--error {
    border-left-color: var(--bumpy-red);
    background: var(--bumpy-red-soft);
    color: #8f1f1f;
}

/* =========================================================
   HISTORY
========================================================= */

.bg-mot-history-section {
    margin: 8px 30px 38px;
    padding-top: 24px;
    border-top: 1px solid var(--gris-borde);
}

.bg-mot-history-count {
    flex: 0 0 auto;
    color: #777;
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bg-mot-history {
    display: grid;
    gap: 12px;
}

.bg-mot-history > p {
    margin: 0;
    color: #666;
}

.bg-mot-test {
    position: relative;
    padding: 17px 18px;
    border: 2px solid var(--gris-borde);
    background: #fff;
}

.bg-mot-test::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--azul-bumpy);
    transition: width 0.25s ease;
}

.bg-mot-test:hover {
    border-color: var(--azul-bumpy);
    box-shadow: 4px 4px 0 rgba(27, 68, 140, 0.12);
}

.bg-mot-test:hover::after {
    width: 100%;
}

.bg-mot-test__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.bg-mot-test__date {
    color: var(--azul-bumpy);
    font-size: 15px;
    font-weight: 900;
}

.bg-mot-test__result {
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.bg-mot-test__result.is-passed {
    color: #15803d;
}

.bg-mot-test__result.is-failed {
    color: #b91c1c;
}

.bg-mot-test__meta {
    margin-top: 7px;
    color: #777;
    font-size: 12px;
    font-weight: 600;
}

.bg-mot-defects {
    margin: 13px 0 0;
    padding: 13px 0 0 20px;
    border-top: 1px dashed var(--gris-borde);
    color: #444;
    font-size: 13px;
    line-height: 1.55;
}

.bg-mot-defect-type {
    color: var(--fucsia-bumpy);
    font-family: "Courier New", monospace;
    font-size: 11px;
    font-weight: 900;
}

/* =========================================================
   FOOTER NOTE
========================================================= */

.bg-mot-powered {
    margin: 10px 30px 30px;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.bg-mot-powered a {
    color: var(--azul-bumpy);
    font-weight: 800;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .bg-mot-identity {
        flex-direction: column;
    }

    .bg-mot-partner {
        flex: none;
        width: 100%;
        max-width: 440px;
        align-self: flex-start;
    }

    .bg-mot-key-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bg-mot-check-section {
        padding-top: 34px;
        padding-bottom: 36px;
    }

    .bg-mot-search-capsule {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
        border-radius: 22px;
    }

    .bg-mot-check-button.boton-fucsia {
        width: 100%;
    }

    .bg-mot-result-section {
        padding: 26px 0 30px;
    }

    .bg-mot-summary-card {
        padding: 21px 18px;
        box-shadow: 5px 5px 0 var(--azul-bumpy);
    }

    .bg-mot-summary-head {
        flex-direction: column;
        padding-left: 7px;
    }

    .bg-mot-key-grid {
        grid-template-columns: 1fr 1fr;
        padding-left: 7px;
    }

    .bg-mot-garage-cta {
        margin-left: 7px;
    }

    .bg-mot-reminder-options {
        grid-template-columns: 1fr;
    }

    .bg-mot-history-section,
    .bg-mot-info-panel,
    .bg-mot-powered,
    .bg-mot-notice {
        margin-left: 0;
        margin-right: 0;
    }

    .bg-mot-section-heading--row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .bg-mot-partner {
        max-width: none;
    }

    .bg-mot-partner__inner {
        padding: 10px 12px;
    }

    .bg-mot-partner__logo.bumpy-dealer-hero__logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }
}

@media (max-width: 480px) {
    .bg-mot-key-grid {
        grid-template-columns: 1fr;
    }

    .bg-mot-vehicle-name {
        font-size: 24px;
    }
}

/* =========================================================
   REUSE GLOBAL BUMPYGOAT COMPONENTS
   Keep this page visually aligned with the rest of the site.
========================================================= */

/* The existing .buscador-capsula is the actual form shell. */
.bg-mot-section-heading--search {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.bg-mot-check-wrap {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.bg-mot-check-form.buscador-capsula {
    width: 100%;
    margin: 0 auto;
}

.bg-mot-registration-field.search-field {
    flex: 1 1 auto;
    min-width: 0;
}

#bg-mot-registration.input-bumpy-search {
    min-height: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bg-mot-check-button.boton-fucsia {
    min-height: 0;
    margin: 0;
}

.bg-mot-check-wrap .bg-mot-form-message {
    text-align: center;
}

/* Result card uses the site's existing .card-tech.azul. */
.bg-mot-summary-card.card-tech {
    padding: 25px;
    border: 2px solid #e0e0e0;
    background: #fff;
    box-shadow: none;
}

.bg-mot-summary-card.card-tech::before {
    display: none;
}

.bg-mot-summary-head {
    padding-left: 0;
    padding-right: 115px;
}

.bg-mot-status.mini-tag {
    z-index: 2;
}

.bg-mot-key-grid {
    padding-left: 0;
}

.bg-mot-garage-cta {
    margin-left: 0;
}

/* Garage CTAs use the existing .btn-bumpy-tool.azul. */
.bg-mot-garage-links a.btn-bumpy-tool {
    min-height: auto;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background: #fff;
    color: var(--azul-bumpy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: none;
    transform: none;
}

.bg-mot-garage-links a.btn-bumpy-tool:hover {
    border-color: var(--azul-bumpy);
    color: var(--azul-bumpy);
    box-shadow: 5px 5px 0 var(--azul-bumpy);
    transform: translate(-3px, -3px);
}

/* Each MOT test is also a standard BumpyGoat tech card.
   The existing .mini-tag handles PASSED / FAILED colours. */
.bg-mot-test.card-tech {
    padding: 25px;
    border: 2px solid #e0e0e0;
    background: #fff;
    box-shadow: none;
}

.bg-mot-test.card-tech::after {
    display: none;
}

.bg-mot-test__top {
    padding-right: 90px;
}

.bg-mot-test__result.mini-tag {
    line-height: 1.2;
}

@media (max-width: 768px) {
    .bg-mot-section-heading--search {
        text-align: left;
    }

    .bg-mot-summary-head {
        padding-right: 0;
        padding-top: 34px;
    }

    .bg-mot-test__top {
        padding-right: 0;
        padding-top: 28px;
    }
}

@media (max-width: 900px) {
    .bg-mot-reminder-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 620px) {
    .bg-mot-reminder-card {
        margin-left: 14px;
        margin-right: 14px;
        padding: 18px 16px;
    }

    .bg-mot-reminder-capsule {
        display: block;
        border-radius: 18px;
        padding: 12px;
    }

    .bg-mot-reminder-button.boton-fucsia {
        width: 100%;
        margin-top: 10px;
    }
}

/* =========================================================
   STATIC MOT GUIDE / SEO CONTENT
   Visible in the initial HTML so the useful explanatory
   content does not depend on a registration lookup.
========================================================= */

.bg-mot-guide {
    margin: 18px 30px 42px;
    padding-top: 34px;
    border-top: 1px solid var(--gris-borde);
}

.bg-mot-guide__heading {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.bg-mot-guide__heading h2,
.bg-mot-faq__heading h2 {
    margin: 5px 0 8px;
    color: var(--azul-bumpy);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.bg-mot-guide__heading p {
    margin: 0 auto;
    max-width: 650px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}

.bg-mot-guide__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bg-mot-guide-card.card-tech {
    position: relative;
    min-height: 205px;
    padding: 24px;
    border: 2px solid #e0e0e0;
    background: #fff;
    box-shadow: none;
}

.bg-mot-guide-card h3 {
    margin: 6px 0 9px;
    color: var(--azul-bumpy);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.35px;
}

.bg-mot-guide-card p {
    margin: 0;
    color: #555;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.65;
}

.bg-mot-guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.bg-mot-guide-tags .mini-tag {
    position: static;
}

.bg-mot-guide-card--reminder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bg-mot-guide-action.btn-bumpy-tool {
    margin-top: auto;
    padding: 10px 16px;
    text-decoration: none;
}

.bg-mot-faq {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gris-borde);
}

.bg-mot-faq__heading {
    margin-bottom: 18px;
}

.bg-mot-faq__list {
    border-top: 2px solid var(--gris-borde);
}

.bg-mot-faq-item {
    border-bottom: 2px solid var(--gris-borde);
    background: #fff;
}

.bg-mot-faq-item summary {
    position: relative;
    display: block;
    padding: 18px 44px 18px 2px;
    color: var(--azul-bumpy);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.bg-mot-faq-item summary::-webkit-details-marker {
    display: none;
}

.bg-mot-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    color: var(--fucsia-bumpy);
    font-family: "Courier New", monospace;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
}

.bg-mot-faq-item[open] summary::after {
    content: "−";
}

.bg-mot-faq-item p {
    margin: -3px 0 0;
    max-width: 900px;
    padding: 0 44px 18px 2px;
    color: #555;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .bg-mot-guide {
        margin-left: 0;
        margin-right: 0;
        padding-top: 28px;
    }

    .bg-mot-guide__heading {
        text-align: left;
    }

    .bg-mot-guide__grid {
        grid-template-columns: 1fr;
    }

    .bg-mot-guide-card.card-tech {
        min-height: 0;
    }

    .bg-mot-faq {
        margin-top: 30px;
        padding-top: 26px;
    }
}


/* DVSA source note directly below the MOT lookup */
.bg-mot-dvsa-check-note {
    max-width: 820px;
    margin: 8px auto 0;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
