@font-face {
    font-family: 'Geometria';
    src: url('/fonts/Brownfox - Geometria.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Geometria-Bold';
    src: url('/fonts/Brownfox - Geometria Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Base */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #fff;
}

.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geometria', Arial, sans-serif;
    padding: 2rem 0;
}

/* Container principal - igual ao Contact.css e Simulation.css */
.success-bg {
    background: #fff;
    font-family: 'Geometria', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.37), 0 0 32px 0 rgba(31, 38, 135, 0.18);
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 0;
    margin: 0 auto;
    width: 80vw;
    max-width: 80vw;
    min-height: auto;
    overflow: visible;
    padding: 2.5rem 3rem 3rem 3rem;
}

.page-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 2rem;
    flex-direction: row;
}

.success-logo {
    width: 15vw;
    max-width: 150px;
    min-width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

.header-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: flex-start;
}

.success-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    min-height: 550px;
}

.success-card .row {
    height: 100%;
    min-height: 550px;
}

.success-card .col-lg-5 {
    height: 100%;
    min-height: 550px;
    padding: 0;
    overflow: hidden;
}

.toyota-logo {
    width: 28px;
    height: auto;
}

.success-left-img {
    width: 100%;
    height: 100%;
    min-height: 550px;
    object-fit: cover;
    object-position: center;
    background-color: #f0f0f0;
    display: block;
}

.success-message-box {
    background-color: #00AEEF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 3rem;
    min-height: 550px;
}

.success-message-title {
    font-family: 'Geometria-Bold', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.success-message-text {
    font-family: 'Geometria', sans-serif;
    color: #fff;
    margin-bottom: 2rem;
}

/* Botão principal */
.success-main-btn {
    background-color: #111;
    color: #fff;
    font-family: 'Geometria-Bold', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 0;
    padding: .8rem 2.2rem;
    border: none;
    transition: background-color .2s ease-in-out;
    cursor: pointer;
}

.success-main-btn:hover {
    background-color: #009FE3;
    color: #fff;
}

/* Botões header padronizados */
.simulation-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #F7F7F7;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    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: 140px;
    min-height: 36px;
    font-family: 'Geometria-Light';
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.simulation-header-btn:hover {
    background: #e6f3fa;
}

.simulation-header-toyota {
    width: 28px;
    height: auto;
    display: block;
}

.simulation-header-arrow {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

@media (max-width: 991.98px) {
    .success-bg {
        width: 90vw;
        max-width: 90vw;
        padding: 2rem 1.5rem;
    }
    
    .page-header {
        padding-bottom: 1.5rem;
        padding-right: 0;
    }
    
    .header-actions {
        margin-right: 0;
    }
    
    .success-card {
        margin-right: 0;
    }

    .success-card,
    .success-card .row,
    .success-card .col-lg-5 {
        min-height: auto;
    }
 
    .success-left-img {
        max-height: 40vh;
        min-height: auto;
        width: 100%;
        object-fit: cover;
    }
    
    .success-message-box {
        min-height: 30vh;
    }
}

@media (max-width: 767.98px) {
    .success-bg {
        width: 95vw;
        max-width: 95vw;
        padding: 1.5rem 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions .simulation-header-btn {
        width: 100%;
    }

    .success-message-title {
      font-size: 1.5rem;
    }

    .success-message-box {
 padding: 1.5rem !important;
    }
}

/* Media query para ecrãs grandes - mantém o tamanho de 1400px */
@media (min-width: 2000px) {
    .success-bg {
        width: 1000px;
        max-width: 1000px;
    }
}

/* 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: hidden !important; /* Force NO scroll */
        height: 100vh;
        min-height: 100vh;
    }

    .page-container {
        padding: 0;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .success-bg {
        margin: 0 auto;
        min-height: auto;
        height: auto;
        width: 85vw;
        max-width: 1250px;
        /* Restore borders and shadow */
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.37), 0 0 32px 0 rgba(31, 38, 135, 0.18);
        padding: 2.5rem 3rem 3rem 3rem; /* Increased top and bottom padding */
        justify-content: center;
    }

    .page-header {
        padding-bottom: 0.8rem;
        flex-shrink: 0;
    }

    .success-card {
        min-height: auto;
        height: 62vh; /* Increase height slightly */
    }

    .success-card .row,
    .success-card .col-lg-5 {
        min-height: auto;
        height: 100%;
    }

    .success-left-img {
        min-height: auto;
        height: 100%;
    }

    .success-message-box {
        min-height: auto;
        height: 100%;
        padding: 1.5rem;
    }

    .success-message-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .success-message-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .success-main-btn {
        padding: .6rem 1.8rem;
        font-size: 0.9rem;
    }
}
