/* Estilos para a página de consulta de agendamentos existentes */

/* Classes utilitárias */
.visible {
    display: block !important;
}

.hidden {
    display: none !important;
}

.consulta-instrucao {
    text-align: center;
    font-size: 14px;
    margin-bottom: 1.5rem;
    color: #666;
}

.btn-consultar {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#resultado {
    margin-top: 2rem;
}

#resultado-erro {
    margin-bottom: 1rem;
}

#erro-box {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

#erro-box p {
    color: #c33;
    margin: 0;
    font-weight: 500;
}

.consulta-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.consulta-item-header {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.consulta-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.consulta-item-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.consulta-item-valor {
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
    word-break: break-word;
}

.consulta-acoes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.75rem;
}

.consulta-acoes button {
    flex: 1;
    padding: 0.5rem;
    font-size: 12px;
    white-space: normal;
}

.consulta-acoes a {
    flex: 1;
}

#loading {
    text-align: center;
    margin-top: 2rem;
}

#loading > div {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

#loading p {
    margin-top: 1rem;
    color: #666;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-icon {
    color: #27ae60;
    font-size: 20px;
    margin-right: 0.5rem;
}

.home-actions-consulta {
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .consulta-item {
        padding: 1rem;
    }

    .consulta-item-row {
        flex-direction: column;
    }

    .consulta-item-label {
        margin-bottom: 0.25rem;
        min-width: auto;
    }

    .consulta-item-valor {
        text-align: left;
        margin-left: 0;
    }

    .consulta-acoes {
        flex-direction: column;
    }

    .consulta-acoes button,
    .consulta-acoes a {
        flex: 1 !important;
        width: 100%;
    }
}

