@font-face {
    font-family: 'GeometriaBold';
    src: url('/fonts/Brownfox - Geometria Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GeometriaLight';
    src: url('/fonts/Brownfox - Geometria Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

body, .form-page-container, .form-page-right, .form-page-content, .form-page-form, .form-row, .form-col, .form-page-footer, .form-page-privacy, .privacy-label, .privacy-text, .simular-btn, .dealerships-btn, .back-btn, .form-row label, .form-row input, .form-row input[type="text"], .form-row input[type="date"] {
    font-family: 'GeometriaLight', Arial, sans-serif;
    font-weight: 300;
}

.form-page-content h2, .form-page-content .highlight {
    font-family: 'GeometriaBold', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.15rem;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    width: 100vw;
    background: #f5f5f5;
    overflow-y: auto;
}

.form-page-container {
    display: flex;
    width: 80vw;
    height: auto;
    min-width: 320px;
    min-height: 400px;
    max-width: 100vw;
    margin: 2rem auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 16px 48px rgba(31,38,135,.37), 0 0 32px rgba(31,38,135,.18);
    border-radius: 0px;
}

.form-page-left {
    flex: 1 1 50%;
    background: url('/form_left.png') no-repeat center center;
    background-size: cover;
    min-width: 0;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.mds-logo-left {
    display: block;
    width: 25%;
    height: auto;
    max-width: 100%;
    margin-top: 25px;
    margin-left: 10px;
    object-fit: contain;
}

.form-page-right {
    flex: 1 1 50%;
    height: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 28px 40px 50px 60px;
    box-sizing: border-box;
    min-width: 480px;
    max-width: 700px;
    position: relative;
}

.form-page-navbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.form-page-navbar-mobile {
    display: none;
}

.dealerships-btn, .back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F7F7F7;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    padding: 6px 16px;
    font-size: 0.95rem;
    color: #222;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
    transition: background 0.2s;
    min-width: 180px;
    width: 180px;
    min-height: 36px;
    font-family: 'GeometriaLight';
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    justify-content: center;
    height: 40px;
}

.dealerships-btn:hover, .back-btn:hover {
    background: #e6f3fa;
}

.dealerships-btn .toyota-logo {
    width: 28px;
    height: auto;
    max-width: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.back-btn .arrow-left {
    font-size: 1.2em;
    margin-right: 4px;
}

.form-page-content {
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-page-content h2 {
    margin-bottom: 0.5rem;
    color: #222;
    line-height: 1.2;
}

.form-page-content .highlight {
    color: #009FE3;
}

.form-page-underline {
    width: 160px;
    height: 4px;
    background: #009FE3;
    border-radius: 0px;
    margin-bottom: 24px;
}

.form-page-form {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    display: flex;
 flex-direction: column;
    gap: 3px;
    margin-bottom: 18px;
    border: none;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.form-row {
    display: flex;
    gap: 9px;
    width: 100%;
}

.form-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 96px;
}

.form-row label {
    font-size: 0.75rem;
    color: #222;
    font-weight: 500;
    margin-bottom: 2px;
}

.form-row input[type="text"],
.form-row input[type="date"] {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    background: #f5f7fa;
    color: #222;
    outline: none;
    transition: border 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03);
    width: 100%;
    box-sizing: border-box;
}

/* Ensure field containers have consistent height */
.form-page-form .row > div {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Full-width field containers */
.form-page-form .row .col-12 {
    min-height: 96px;
}

.validation-message {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    color: red;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.validation-slot {
    min-height: 24px;
}

.required {
    color: #009FE3;
    font-weight: 700;
}

.form-page-arrow {
    position: absolute;
    bottom: 6px !important;
    right:6px !important; 
    background: #F7F7F7;
    border: none;
    border-radius: 0px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
    cursor: pointer;
    transition: background 0.2s;
}

.form-page-arrow:hover {
    background: #e6f3fa;
}

.form-page-privacy {
    margin: 2px 0 0 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
    padding-left: 0;
    color: #888;
}

.privacy-error {
    min-height: 20px;
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 8px;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.5rem;
    color: #888;
    font-weight: 400;
    margin-bottom: 2px;
}

.privacy-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    background: #f5f7fa;
    border: 2px solid #888;
    border-radius: 0;
    display: inline-block;
    position: relative;
    margin-top: 0;
    margin-right: 4px;
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.privacy-checkbox:checked {
    background: #009FE3;
    border-color: #009FE3;
}

.privacy-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.privacy-text {
    font-size: 0.5rem;
    color: #888;
    font-weight: 400;
    line-height: 1.3;
}

.privacy-text a {
    color: #009FE3;
    text-decoration: underline;
}

.form-btn-row {
    display: flex;
    justify-content: flex-end !important;
}

 .form-btn-row .col-12 {
        display: flex !important;
        justify-content: flex-end !important;
    }

.simular-btn {
    background: #009FE3 !important;
    color: #fff !important;
    border: none;
    border-radius: 0px;
    padding: 8px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
    transition: background 0.2s;
    margin-left: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-top: 20px;
}

.simular-btn:hover {
    background: #007bbd;
}

.form-page-disclaimers {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
}

.logo-container {
    flex: 0 0 66px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.privacy-img {
    width: 70px;
    height: 74px;
    padding-bottom: 0px;
    object-fit: contain;
    margin-top: 0;
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    flex: 1;
    width: 100%;
}

.form-page-disclaimer {
    font-size: 0.5rem;
    color: #888;
    line-height: 1.3;
    margin: 0;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

@media (max-width: 576px) {
    .form-page-disclaimers {
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .logo-container {
        flex: 0 0 34px !important;
    }
    .privacy-img {
        width: 34px !important;
        height: 38px !important;
        margin-top: 0 !important;
    }
    .text-container {
        display: flex;
        flex-direction: column;
        height: auto;
    }
}

@media (max-width: 600px) {
    .form-page-disclaimer {
        font-size: 0.44rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 400px) {
    .form-page-disclaimers {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .logo-container {
        flex: 0 0 38px !important;
    }
    .privacy-img {
        width: 38px !important;
        height: 42px !important;
    }
}

/* Laptop Compact Mode (125% scaling or small vertical space) */
@media (min-width: 992px) and (max-height: 950px) and (max-width: 1550px) {
    html, body {
        overflow-y: auto; /* Allow scroll if absolutely necessary but try to fit */
    }

    .form-page-container {
        margin: 2rem auto; /* Increased margin for top/bottom */
        min-height: auto;
        height: auto;
    }

    .form-page-right {
        padding: 20px 30px 20px 40px;
    }

    .form-page-navbar {
        margin-bottom: 12px;
    }
    
    .dealerships-btn, .back-btn {
        height: 32px;
        min-height: 32px;
        font-size: 0.85rem;
        padding: 4px 12px;
    }

    .mds-logo-left {
        margin-top: 15px;
        width: 25%; /* Increased from 20% to make it slightly bigger */
    }

    .form-page-content h2 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .form-page-underline {
        margin-bottom: 12px;
        height: 3px;
    }

    .form-page-form {
        margin-bottom: 8px;
        gap: 2px;
    }

    .form-col {
        min-height: 70px;
        gap: 2px;
    }
    
    .form-page-form .row > div,
    .form-page-form .row .col-12 {
        min-height: 70px;
    }

    .form-row input[type="text"], 
    .form-row input[type="date"] {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .form-row label {
        font-size: 0.7rem;
        margin-bottom: 1px;
    }
    
    .validation-message {
        font-size: 0.65rem;
        margin-top: 2px;
    }
    
    .validation-slot {
        min-height: 18px;
    }

    .simular-btn {
        margin-top: 10px;
        padding: 6px 24px;
        min-height: 32px;
        font-size: 0.85rem;
    }
    
    .privacy-label, .privacy-text {
        font-size: 0.45rem;
    }
    
    .form-page-disclaimer {
        font-size: 0.45rem;
    }
}

/* Removido ajuste de texto no range 1400–1650; usar tamanhos base do logo maiores */

/* Ajustes para ecrãs pequenos (<700px): botões lado a lado e disclaimer com logo ao lado */
@media (max-width: 700px) {
    .form-page-navbar {
        display: none !important;
    }
    .form-page-navbar-mobile {
        display: flex !important;
        justify-content: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        overflow: visible !important;
    }
    .form-page-navbar-mobile .dealerships-btn,
    .form-page-navbar-mobile .back-btn {
        flex: 0 0 auto !important;
        min-width: 160px !important;
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        height: 36px !important;
        line-height: 1.2 !important;
    }
    .form-page-navbar-mobile .toyota-logo {
        width: 18px !important;
        max-width: 18px !important;
    }
    .form-page-navbar .dealerships-btn,
    .form-page-navbar .back-btn {
        min-width: 0 !important;
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }
    .dealerships-btn .toyota-logo {
        width: 22px !important;
        max-width: 22px !important;
    }

    .form-page-disclaimers {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    .logo-container {
        flex: 0 0 66px !important;
    }
    .privacy-img {
        width: 70px !important;
        height: 74px !important;
        margin-top: 0 !important;
    }
    .form-page-right {
        padding-bottom: 90px !important;
    }
    .form-page-arrow {
        bottom: 8px !important;
        right: 12px !important;
    }
}

.form-page-footer {
    font-size: 0.5rem;
    color: #888;
    position: absolute; /* posicionamento absoluto */
    bottom: 60px; /* dist�ncia fixa do fundo - ajust�vel */
    left: 40px; /* alinha com o padding do form-page-right */
 right: 40px; /* alinha com o padding do form-page-right */
    line-height: 1.3;
  width: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 0;
}

.form-page-arrow {
    position: absolute;
    bottom: 18px;
    right: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.form-page-arrow .arrow-left {
    font-size: 1.1rem;
    color: #009FE3;
    font-weight: bold;
    margin: 0;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid #ccc;
    border-top: 0.4rem solid #009FE3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-inline {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #00AEEF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
    to {
  transform: rotate(360deg);
    }
}


@media (max-width: 900px) {
    .form-page-container {
        flex-direction: column;
        width: auto !important;
        max-width: 100% !important;
        margin: 1rem !important;
    }
    .form-page-left, .form-page-right {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .form-page-right {
        padding: 24px 8vw 16px 8vw;
        min-width: 0 !important;
    }
}

Form.css - Basic styles for form elements 

form {
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff !important;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}
.form-page-navbar {
    display: flex;
    gap: 12px;
    align-items: center;
  justify-content: flex-end;
    margin-bottom: 32px;
}
.contact-mds-btn, .dealerships-btn, .back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F7F7F7;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    padding: 6px 16px;
    font-size: 0.95rem;
    color: #222;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
    transition: background 0.2s;
    min-width: 180px;
    width: 180px;
    min-height: 36px;
    font-family: 'Geometria-Light';
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    justify-content: center;
    height:40px;
}

.contact-mds-btn:hover, .dealerships-btn:hover, .back-btn:hover {
    background: #e6f3fa;
}

input[type="date"].form-control:focus {
    appearance: none;
    -webkit-appearance: none;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: none !important;
}
.spinner {
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid #ccc;
    border-top: 0.4rem solid #009FE3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-inline {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #00AEEF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
    to {
  transform: rotate(360deg);
    }
}


@media (max-width: 400px) {
  .form-page-navbar {
   gap: 8px;
        flex-wrap: wrap;
  flex-direction: row; 
        align-items: center; 
      justify-content: flex-end;
    }

        .form-page-navbar .contact-mds-btn,
        .form-page-navbar .dealerships-btn,
        .form-page-navbar .back-btn {
            flex: 0 0 auto; 
     min-width: 0; 
width: auto;
     justify-content: center;
  font-size: 14px; 
     padding: 6px 12px;
   }

    .form-page-left {
  min-height: 80px; 
        padding: 12px;
 }

    .mds-logo-left {
    max-width: 160px; 
 height: auto;
        display: block;
        margin: 0 auto; 
    }

    .form-page-navbar-mobile {
        display: none !important;
    }
    .form-page-navbar-mobile .dealerships-btn,
    .form-page-navbar-mobile .back-btn {
        flex: 0 0 calc((100% - 6px)/2) !important;
        width: calc((100% - 6px)/2) !important;
        min-width: 0 !important;
        padding: 6px 10px !important;
        font-size: 0.74rem !important;
        height: 32px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }
    .form-page-navbar-mobile .toyota-logo {
        width: 14px !important;
        max-width: 14px !important;
    }

    /* Alinhar título e sublinhado à esquerda para coincidir com a linha azul */
    .form-page-content h2 {
        text-align: left !important;
    }
    .form-page-underline {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    .form-page-content {
        padding-top: 8px !important;
    }
}

/* Utility class to remove left padding only */
.no-padding-left {
    padding-left: 0 !important;
}

/* Media query para ecr�s muito grandes - mant�m o tamanho de 1120px (80% de 1400px) */
@media (min-width: 2000px) {
    .form-page-container {
width: 1120px;
        max-width: 1120px;
    }
}

@media (max-width: 991.98px) {
    .form-page-container { 
        width: auto !important; 
        max-width: 100% !important; 
        margin: 1rem !important; 
    }
    .form-page-right { 
        min-width: 0 !important; 
        max-width: 100% !important; 
    }
}

/* Laptops pequenos (desktop estreito): reduzir alturas e espaçamentos para evitar scroll excessivo */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .form-page-container {
        margin: 1rem auto !important;
    }
    .form-page-left {
        min-height: 360px !important;
    }
    .form-page-right {
        padding: 24px 40px 24px 40px !important;
    }
    .form-page-footer {
        bottom: 40px !important;
    }
}

/* Entre 1000px e 1350px, manter estilo como em ~1400px (duas colunas, botões fixos) */
@media (min-width: 1000px) and (max-width: 1350px) {
    .form-page-container {
        width: 92vw;
        max-width: 1120px;
        margin: 2rem auto;
    }
    .form-main-row {
        flex-direction: row !important;
    }
    .form-page-left,
    .form-page-right {
        min-width: 0 !important;
    }
    .form-page-right {
        padding: 24px 32px 40px 32px !important;
        max-width: 700px !important;
    }
    .form-page-navbar {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }
    .form-page-navbar .dealerships-btn,
    .form-page-navbar .back-btn {
        min-width: 160px !important;
        width: auto !important;
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
    }
    .form-page-arrow {
        right: 8px !important;
        bottom: 12px !important;
    }
}



 
@media (min-width: 992px) and (max-width: 1200px) {
    .form-page-container {
        width: auto !important;
        max-width: 100% !important;
        margin: 1rem auto !important;
    }
    .form-main-row {
        flex-direction: column !important;
    }
    .form-page-left {
        display: none !important;
    }
    .form-page-right {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 24px 6vw 32px 6vw !important;
    }
    .form-page-content,
    .form-page-form {
        width: 100% !important;
        max-width: 100% !important;
    }
    .form-page-navbar {
        justify-content: flex-end !important;
        margin-bottom: 20px !important;
    }
    .row.g-3 .col-lg-6,
    .form-page-form .row .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .form-page-form .row > div {
        width: 100% !important;
        max-width: 100% !important;
    }
    .form-page-arrow {
        right: 8px !important;
        bottom: 8px !important;
    }
}
