/* 
 * Estilo Travel Designer para páginas informe-se.html e informe-se-en.html
 * Design moderno e limpo com paleta de cores do site
 */

/* Reset e base */
* {
    box-sizing: border-box;
}

/* Container principal do formulário */
.form-header {
    background: var(--primary-dark) !important;
    padding: 80px 0 60px !important;
    text-align: center !important;
    position: relative !important;
}

.form-header h1 {
    color: #fff !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 1px !important;
}

/* Container do formulário */
.form-container {
    max-width: 900px !important;
    margin: -30px auto 0 !important;
    padding: 0 20px 80px !important;
    position: relative !important;
    z-index: 3 !important;
}

/* Introdução do formulário */
.form-intro {
    background: #fff !important;
    padding: 40px !important;
    border-radius: 8px !important;
    margin-bottom: 40px !important;
    border: 1px solid #e1e5e9 !important;
}

.form-intro h2 {
    color: var(--primary-dark) !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

.form-intro p {
    color: #666 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 !important;
}

.asterisk-note {
    font-size: 14px !important;
    color: #999 !important;
    margin-top: 10px !important;
}

.asterisk-note span {
    color: #666 !important;
    font-weight: 600 !important;
}

/* Formulário principal */
#consulta-form {
    background: #fff !important;
    padding: 50px !important;
    border-radius: 8px !important;
    border: 1px solid #e1e5e9 !important;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 25px !important;
}

.form-row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
    gap: 0 !important;
}

.form-col {
    flex: 1 !important;
    padding: 0 15px !important;
    min-width: 280px !important;
}

/* Labels */
.form-group label {
    display: block !important;
    font-weight: 600 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
}

.form-group label.required::after {
    content: ' *' !important;
    color: #666 !important;
    font-weight: 700 !important;
}

/* Inputs, selects e textareas */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: 'General Sans', sans-serif !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    color: #333 !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: var(--primary-dark) !important;
}

.form-group textarea {
    min-height: 120px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

/* Select customizado */
.form-group select {
    cursor: pointer !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><polyline points="6,9 12,15 18,9"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Container de bandeira */
.flag-container {
    position: relative !important;
}

.flag {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
}

.flag img {
    width: 24px !important;
    height: auto !important;
    border-radius: 3px !important;
}

.flag-container input {
    padding-left: 45px !important;
}

/* Select de código de país */
.country-code-select {
    background: #f8f9fa !important;
    border: 2px solid #e1e5e9 !important;
    font-size: 14px !important;
}

/* Botão de envio */
.submit-btn {
    background: var(--primary-dark) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin: 30px auto 0 !important;
    min-width: 200px !important;
}

.submit-btn:hover {
    background: #1a4480 !important;
    opacity: 0.9 !important;
}

/* Notas do formulário */
.form-note {
    font-size: 13px !important;
    color: #888 !important;
    margin-top: 6px !important;
    font-style: italic !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .form-header {
        padding: 60px 0 40px !important;
    }
    
    .form-header h1 {
        font-size: 36px !important;
    }
    
    .form-container {
        margin-top: -20px !important;
        padding: 0 15px 60px !important;
    }
    
    .form-intro,
    #consulta-form {
        padding: 30px 20px !important;
        margin-bottom: 30px !important;
    }
    
    .form-intro h2 {
        font-size: 24px !important;
    }
    
    .form-col {
        flex: 0 0 100% !important;
        margin-bottom: 15px !important;
        min-width: auto !important;
    }
    
    .form-row {
        margin: 0 !important;
    }
    
    .form-col {
        padding: 0 !important;
    }
    
    .submit-btn {
        width: 100% !important;
        padding: 18px !important;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 28px !important;
    }
    
    .form-intro,
    #consulta-form {
        padding: 25px 15px !important;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
}

/* Estados de validação - cores neutras */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #999 !important;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #666 !important;
}
