@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0A141E;
    --bg-light-dark: #12212f;
    --text-light: #f0f0f0;
    --text-secondary: #a0a0a0;
    --primary-color: #E63946;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.form-container {
    background-color: var(--bg-light-dark);
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.disclaimer {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group.noites {
    flex-grow: 0;
    text-align: center;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

#num-noites {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-top: 0.5rem;
}

.cpf-input-wrapper {
    display: flex;
    gap: 0.5rem;
}
.cpf-input-wrapper input { flex-grow: 1; }

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    filter: brightness(1.1);
}
.btn-primary:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    color: white;
}

.passageiro-box {
    border: 1px dashed var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.error-message {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

#form-message {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}
.success { background-color: #2a9d8f; color: white; }
.error { background-color: #e76f51; color: white; }

@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .actions {
        flex-direction: column-reverse;
        width: 100%;
    }
    .actions button {
        width: 100%;
    }
}