/* Reset básico e fundo Full HD */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-image: url('capa.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Layout lateral: container à direita em telas maiores */
body {
    display: flex;
    justify-content: flex-end; /* alterado de flex-start para flex-end */
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Card do formulário com altura máxima e rolagem interna */
.container {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    margin: 0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    box-sizing: border-box;
    overflow-y: auto;
}

/* Ocultar elementos (lógica SPA) */
.hidden {
    display: none !important;
}

/* Logo e título */
.logo-area {
    text-align: center;
    margin-bottom: 10px;
}
.logo-area h1 {
    margin: 0;
    font-size: 32px;
    color: #000;
    letter-spacing: 2px;
}
.logo-area .subtitulo {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

label {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 8px;
    margin-top: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 12px;
}
.checkbox-container input {
    margin-right: 10px;
}
.checkbox-container label {
    margin-top: 0;
    font-weight: normal;
}

button, .btn-hotel {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.btn-hotel {
    background-color: #28a745;
}

.h-captcha {
    margin-top: 12px;
    margin-bottom: 5px;
}

/* Crédito dentro do formulário */
.credito {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}
.credito a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}
.credito a:hover {
    text-decoration: underline;
}

/* Media query para dispositivos móveis (até 600px) */
@media (max-width: 600px) {
    body {
        justify-content: center; /* mantém centralizado no mobile */
        padding: 10px;
        background-attachment: scroll;
    }
    .container {
        max-width: 100%;
        padding: 15px;
        max-height: calc(100vh - 20px);
    }
    label {
        font-size: 13px;
        margin-top: 6px;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select {
        padding: 6px;
        font-size: 14px;
    }
    button, .btn-hotel {
        padding: 8px;
        font-size: 15px;
    }
    .checkbox-container {
        margin-top: 8px;
    }
    .h-captcha {
        margin-top: 8px;
    }
    .credito {
        margin-top: 8px;
        font-size: 11px;
    }
}