/* Container do formulário */
.container-geral {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 5%;
}

/* Container do formulário */
.contact-container {
    max-width: 500px;
    width: 90%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-container h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

/* Grupo de cada campo do formulário */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em;
    text-align: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 95%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

/* Estilo do botão */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Estilos gerais para o container */
.toggle-container {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 1em;
    color: #333;
    margin-bottom: 20px;
}

#status-label {
    margin-right: 10px;
    font-weight: bold;
}

/* Estilos do switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Ajuste de cor para o texto do estado */
#status-label.available {
    color: #4CAF50;
}

#status-label.unavailable {
    color: #cc0000;
}

/* Container dos comentários */
.comments-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 600px;
    margin: auto;
    font-family: Arial, sans-serif;
}

/* Card de comentário */
.comment-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Nome do autor do comentário */
.comment-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Assunto do comentário */
.comment-subject {
    font-size: 1em;
    font-weight: 600;
    color: #666;
    margin-top: 5px;
}

/* Mensagem do comentário */
.comment-message {
    font-size: 0.95em;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

/* Área de resposta */
.comment-response {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
}

/* Título da resposta */
.response-title {
    font-size: 1em;
    font-weight: bold;
    color: #2e7d32;
    margin: 0 0 5px 0;
}

/* Mensagem da resposta */
.response-message {
    font-size: 0.95em;
    color: #444;
    margin: 0;
}

/* Efeito de hover no card */
.comment-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

/* Estilo geral do alerta */
.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    position: relative;
    transition: opacity 0.3s ease;
}

/* Cores dos tipos de alerta */
.alert-success { background-color: #4CAF50; }
.alert-error { background-color: #f44336; }
.alert-warning { background-color: #ff9800; }

/* Botão de fechar */
.alert .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

/* Animação de desvanecimento */
.fade-out {
    opacity: 0;
}


/* Responsividade para telas menores */
@media (max-width: 600px) {
    .contact-container {
        padding: 20px;
    }
}