/* HEADER */
.header {
    text-align: center;
    width: 100%;
}

.header img {
    max-width: 160px;
    display: inline-block;
}

/* Container principal */
.container {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
}

/* Seta customizada do select (a nativa fica presa na borda direita).
   Ajuste o 1o valor de background-position para mover a seta na horizontal. */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-size: 12px 8px;
    background-position: right 24px center;
    padding-right: 44px;
}

select::-ms-expand {
    display: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--ford-blue);
}

.placeholder-img {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    overflow: hidden;
}

.placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vehicle {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}

.consentimento {
    margin-top: 20px;
}

.optin-scroll-box {
    max-height: 110px;
    overflow-y: auto;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    padding-right: 5px;
}

.optin-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.optin-scroll-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

button.submit {
    display: block;
    background: var(--action-blue);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    max-width: 250px;
    float: right;
}

button.submit:hover {
    background: var(--action-blue-hover);
}

.btn-modal-ok {
  background: var(--action-blue);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 15px 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 100px;
  cursor: pointer;
}
.btn-modal-ok:hover { background: var(--action-blue-hover); }

.error-msg {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    font-weight: bold;
}

.info-msg {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    color: var(--field-muted-color);
    font-style: italic;
}

.info-msg::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    vertical-align: -2px;
    background-color: currentColor;
    -webkit-mask: var(--icon-info) center / contain no-repeat;
    mask: var(--icon-info) center / contain no-repeat;
}

/* O hint do documento nasce vazio e é preenchido pelo lead-form.js conforme o
   tipo escolhido; sem isto o ícone ficaria sozinho no tipo que não tem hint. */
.info-msg:empty {
    display: none;
}

.success-box {
    max-width: 700px;
    margin: 10px auto;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.success-box h2 {    
    margin-bottom: 20px;
}

.loader {
    width: 60px;
    aspect-ratio: 4;
    background: radial-gradient(circle closest-side, #000 90%, #0000) 0/calc(100%/3) 100% space;
    clip-path: inset(0 100% 0 0);
    animation: l1 1s steps(4) infinite;
    margin: 20px auto 0;
}

@keyframes l1 {
    to {
        clip-path: inset(0 -34% 0 0)
    }
}

@media(max-width:768px) {
    body {
        padding: 20px 10px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 20px;
    }

    button.submit {
        display: block;
        background: var(--action-blue);
        color: white;
        border: none;
        border-radius: 30px;
        padding: 15px 10px;
        cursor: pointer;
        margin: 35px auto 0 auto;
        font-size: 16px;
        font-weight: bold;
        width: 100%;
        max-width: 250px;
        float: none;
    }
}

/* Páginas de status (404) */
.status-page {
    max-width: 640px;
    text-align: center;
}

.status-page .status-code {
    color: var(--ford-blue);
    font-size: 72px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.status-page h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.status-page .subtitle {
    color: var(--muted-color);
}

.status-link {
    display: inline-block;
    background: var(--action-blue);
    color: #fff;
    border-radius: 30px;
    padding: 15px 30px;
    margin-top: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

.status-link:hover {
    background: var(--action-blue-hover);
}
