/* Estilos para a página de Contato */

.contact-hero {
    background: linear-gradient(180deg, #f9fcff 0%, #f5fbff 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before,
.contact-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.contact-hero::before {
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,112,224,0.04) 0%, rgba(0,112,224,0) 70%);
}

.contact-hero::after {
    bottom: -120px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0,112,224,0.03) 0%, rgba(0,112,224,0) 70%);
}

.contact-hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3.2em;
    color: #0a2540;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.contact-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0070e0;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.contact-hero:hover h1::after {
    width: 120px;
}

.contact-hero p {
    font-size: 1.2em;
    color: #505a68;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    padding: 80px 0;
    background-color: #fafbfc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Coluna da esquerda menor */
    gap: 40px;
}

/* Informações de Contato (Coluna Esquerda) */
.contact-info {
    background: linear-gradient(145deg, #ffffff, #f7faff);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 112, 224, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 112, 224, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 112, 224, 0.12);
}

.contact-info h2 {
    font-size: 1.9em;
    color: #0a2540;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
    font-weight: 600;
}

.contact-info h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background: linear-gradient(to bottom, #0070e0, #00a2ff);
    border-radius: 4px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1em;
    color: #505a68;
    position: relative;
    transition: transform 0.3s ease;
}

.contact-info ul li:hover {
    transform: translateX(5px);
}

.contact-info ul li i {
    font-size: 1.3em;
    background: linear-gradient(135deg, #0070e0, #00a2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 15px;
    margin-top: 3px;
    width: 25px;
    text-align: center;
    filter: drop-shadow(0 2px 3px rgba(0, 112, 224, 0.2));
    transition: transform 0.3s ease;
}

.contact-info ul li:hover i {
    transform: scale(1.2);
}

.contact-info ul li strong {
    display: block;
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.contact-social strong {
    display: block;
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-left: 15px;
}

.contact-social strong::before {
    content: '';
    position: absolute;
    left: 0;
    top: 30%;
    height: 40%;
    width: 3px;
    background: linear-gradient(to bottom, #0070e0, #00a2ff);
    border-radius: 3px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f7faff);
    box-shadow: 0 5px 15px rgba(0, 112, 224, 0.1);
    color: #0070e0;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 112, 224, 0.08);
}

.social-icons a i {
    /* Garantir que os ícones são visíveis */
    color: #0070e0;
    opacity: 1;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 112, 224, 0.2);
    background: linear-gradient(145deg, #0070e0, #00a2ff);
    color: #fff;
}

/* Formulário de Contato (Coluna Direita) */
.contact-form-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 112, 224, 0.08);
    padding: 40px 35px;
    border: 1px solid rgba(0, 112, 224, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0,112,224,0.03) 0%, rgba(0,112,224,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact-form-container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,112,224,0.02) 0%, rgba(0,112,224,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact-form-container h2 {
    font-size: 1.9em;
    color: #0a2540;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input[type="radio"] {
    display: none; /* Esconde o botão de rádio padrão */
}

.radio-item label {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    background-color: #fff;
}

.radio-item input[type="radio"]:checked + label {
    background-color: #0070e0;
    color: #fff;
    border-color: #0070e0;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d7e1;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23505a68%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.contact-form-container h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background: linear-gradient(to bottom, #0070e0, #00a2ff);
    border-radius: 4px;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-group-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.contact-form .form-group-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #0a2540;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.contact-form .form-group:focus-within label {
    color: #0070e0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f9fafc;
    color: #505a68;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: #0070e0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 112, 224, 0.1);
    background-color: #fff;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="tel"]:hover,
.contact-form textarea:hover {
    border-color: #99c3ff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-form {
    background: linear-gradient(135deg, #0070e0, #00a2ff);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 112, 224, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form .btn-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
}

.contact-form .btn-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 112, 224, 0.3);
}

.contact-form .btn-form:active {
    transform: translateY(1px);
}

.contact-form .btn-form:hover::before {
    left: 100%;
}

/* Validation Styles */
.help-text {
    color: #d9534f;
    font-size: 0.875em;
    margin-top: 6px;
    display: none; /* Hidden by default */
}

.form-group .is-invalid {
    border-color: #d9534f !important;
}

.form-group .select2-container.is-invalid .select2-selection--single {
    border-color: #d9534f !important;
}

#nao-dentista-aviso {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    color: #8a6d3b;
    text-align: center;
}

#nao-dentista-aviso p {
    margin-bottom: 10px;
    line-height: 1.5;
}

#nao-dentista-aviso p:last-child {
    margin-bottom: 0;
}

#nao-dentista-aviso strong {
    color: #664d03;
}

/* Success Message Styles */
#success-message {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #d6e9c6;
    background-color: #f7fff7;
    border-radius: 10px;
    display: none; /* Hidden by default, controlled by JS */
}

#success-message .fa-check-circle {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 20px;
}

#success-message h3 {
    font-size: 1.8em;
    color: #0a2540;
    font-weight: 600;
    margin-bottom: 15px;
}

#success-message p {
    font-size: 1.1em;
    color: #505a68;
    line-height: 1.6;
}

/* Estilos para o Select2 com maior especificidade */
.contact-form .select2-container--default .select2-selection--single {
    height: 48px !important; /* Força a altura para 48px */
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    background-color: #f9fafc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
    transition: all 0.3s ease;
}

.contact-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important; /* Força o alinhamento vertical */
    color: #505a68;
    padding-left: 18px;
    padding-right: 30px;
}

.contact-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important; /* Força a altura da seta */
    right: 10px;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0070e0;
    box-shadow: 0 0 0 3px rgba(0, 112, 224, 0.1);
}

.select2-dropdown {
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    overflow: hidden; /* Garante que o conteúdo não ultrapasse as bordas arredondadas */
}

.select2-search--dropdown {
    padding: 10px;
    border-bottom: 1px solid #e0e6ed;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d0d7e1;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}

.select2-results__option {
    padding: 10px 18px;
    transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0070e0;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f5fa;
    color: #0a2540;
}

/* Responsividade */
@media (max-width: 1100px) {
    .contact-hero h1 {
        font-size: 2.8em;
    }
    
    .contact-hero p {
        font-size: 1.1em;
    }
    
    .contact-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Empilha as colunas */
    }
    
    .contact-info {
        margin-top: 40px; /* Espaço quando empilhado */
        order: 2; /* Coloca as informações de contato abaixo do formulário */
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .contact-content {
        padding: 60px 0;
    }
    
    .contact-hero {
        padding: 80px 0 60px;
    }
}

@media (max-width: 768px) {
    .contact-hero::before,
    .contact-hero::after {
        width: 200px;
        height: 200px;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 30px 25px;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 600px) {
    .contact-hero h1 {
        font-size: 2.3em;
    }
    
    .contact-hero p {
        font-size: 1em;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 25px 20px;
    }
    
    .contact-form .form-group-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-content {
        padding: 40px 0;
    }
    
    .contact-info h2,
    .contact-form-container h2 {
        font-size: 1.6em;
    }
    
    .contact-form .btn-form {
        width: 100%;
        padding: 14px 15px;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 0; /* Remove gap pois os form-groups internos terão margin-bottom */
    }
    
    .form-group-row .form-group {
        margin-bottom: 20px; /* Adiciona margem de volta */
    }
    
    .form-group-row .form-group:last-child {
        margin-bottom: 0;
    }
}
